restructured flake
This commit is contained in:
parent
5c7ae091c1
commit
bf3bb961f3
100 changed files with 76 additions and 78 deletions
|
@ -16,7 +16,11 @@
|
|||
./radicale.nix
|
||||
./synapse.nix
|
||||
|
||||
../../modules/default
|
||||
../../modules/common
|
||||
../../modules/nixos
|
||||
../../modules/home-manager
|
||||
../../modules/sops
|
||||
../../modules/stylix
|
||||
|
||||
];
|
||||
|
||||
|
|
|
@ -4,8 +4,11 @@
|
|||
./hardware-configuration.nix
|
||||
./disko.nix
|
||||
|
||||
../../modules/default
|
||||
|
||||
../../modules/common
|
||||
../../modules/nixos
|
||||
../../modules/home-manager
|
||||
../../modules/sops
|
||||
../../modules/stylix
|
||||
];
|
||||
|
||||
desktop = {
|
||||
|
@ -24,7 +27,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.auto-epp.enable = true;
|
||||
services.auto-epp.enable = true;
|
||||
services.fwupd.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
services.hardware.bolt.enable = true;
|
||||
|
|
|
@ -5,7 +5,11 @@
|
|||
./disko.nix
|
||||
./jovian.nix
|
||||
|
||||
../../modules/default
|
||||
../../modules/common
|
||||
../../modules/nixos
|
||||
../../modules/home-manager
|
||||
../../modules/sops
|
||||
../../modules/stylix
|
||||
|
||||
];
|
||||
|
||||
|
|
|
@ -4,7 +4,11 @@
|
|||
./hardware-configuration.nix
|
||||
./disko.nix
|
||||
|
||||
../../modules/default
|
||||
../../modules/common
|
||||
../../modules/nixos
|
||||
../../modules/home-manager
|
||||
../../modules/sops
|
||||
../../modules/stylix
|
||||
|
||||
];
|
||||
|
||||
|
|
14
modules/common/default.nix
Normal file
14
modules/common/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options = {
|
||||
nixos.enable = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
home.enable = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./nixos
|
||||
./home-manager
|
||||
];
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
programs = {
|
||||
direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
{ lib, ... }:
|
||||
{ }
|
|
@ -1,33 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
wallpaper = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/Oneshot.png";
|
||||
hash = "sha256-LaIzLCW86sbldE9lk7psbYKaTCjwaPLcoD3il6FalTw=";
|
||||
};
|
||||
plymouth_logo = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/outlinenobackground.png";
|
||||
hash = "sha256-HdErySgSwNSPEHyBywLyZCAss4vUhsY8BvCPe5hST6Q=";
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
|
||||
autoEnable = true;
|
||||
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/pasque.yaml";
|
||||
override = {
|
||||
base0D = "F3196E";
|
||||
base0F = "CFAACF";
|
||||
};
|
||||
|
||||
image = wallpaper;
|
||||
|
||||
polarity = "dark";
|
||||
|
||||
targets.plymouth.logo = plymouth_logo;
|
||||
|
||||
};
|
||||
|
||||
}
|
|
@ -1,20 +1,19 @@
|
|||
{ ... }:
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
|
||||
home.enable = true;
|
||||
|
||||
imports = [
|
||||
./desktop
|
||||
./shell
|
||||
./tmux
|
||||
./utils
|
||||
./direnv.nix
|
||||
|
||||
./git.nix
|
||||
./stylix.nix
|
||||
./syncthing.nix
|
||||
];
|
||||
|
||||
home-manager.users.willifan = {
|
||||
imports = [
|
||||
];
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
};
|
||||
|
|
@ -6,7 +6,7 @@ let
|
|||
sha256 = "1andyln5vmm934nl1lsid2gpc88h9il83b84yd9dmqr7pninwk37";
|
||||
};
|
||||
in
|
||||
lib.mkIf config.desktop.wm.niri.enable {
|
||||
lib.mkIf (config.desktop.wm.niri.enable && config.nixos.enable) {
|
||||
|
||||
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
|
||||
|
|
@ -11,9 +11,4 @@
|
|||
./zed.nix
|
||||
];
|
||||
|
||||
home-manager.users.willifan = {
|
||||
imports = [
|
||||
];
|
||||
};
|
||||
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, config, inputs, hostname, ... }:
|
||||
{
|
||||
|
||||
|
||||
nixos.enable = true;
|
||||
|
||||
imports = [
|
||||
./desktop
|
||||
|
@ -20,9 +20,6 @@
|
|||
./optimise.nix
|
||||
./options.nix
|
||||
./packages.nix
|
||||
./sops.nix
|
||||
./stylix.nix
|
||||
./syncthing.nix
|
||||
./users.nix
|
||||
];
|
||||
|
|
@ -8,4 +8,9 @@ lib.mkIf config.desktop.dev.enable {
|
|||
clang-tools
|
||||
gcc
|
||||
];
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
|
||||
|
||||
sops.defaultSopsFile = ../../../secrets/secrets.yaml;
|
||||
sops.defaultSopsFile = ../../secrets/secrets.yaml;
|
||||
sops.defaultSopsFormat = "yaml";
|
||||
|
||||
sops.age.keyFile = "/etc/sops/keys.txt";
|
|
@ -1,11 +1,35 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
wallpaper = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/Oneshot.png";
|
||||
hash = "sha256-LaIzLCW86sbldE9lk7psbYKaTCjwaPLcoD3il6FalTw=";
|
||||
};
|
||||
plymouth_logo = pkgs.fetchurl {
|
||||
url = "https://files.huwe.mooo.com/outlinenobackground.png";
|
||||
hash = "sha256-HdErySgSwNSPEHyBywLyZCAss4vUhsY8BvCPe5hST6Q=";
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
lib.mkIf config.home.enable {
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
|
||||
autoEnable = true;
|
||||
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/pasque.yaml";
|
||||
override = {
|
||||
base0D = "F3196E";
|
||||
base0F = "CFAACF";
|
||||
};
|
||||
|
||||
image = wallpaper;
|
||||
|
||||
polarity = "dark";
|
||||
|
||||
targets.plymouth.logo = plymouth_logo;
|
||||
|
||||
};
|
||||
|
||||
home-manager.users.willifan = {
|
||||
stylix = {
|
||||
|
@ -72,3 +96,5 @@ in
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue