refactor: move stylix to module
This commit is contained in:
parent
57dbec7eeb
commit
d4ecb78824
2 changed files with 22 additions and 15 deletions
|
@ -31,26 +31,12 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
(lib.optionals (type == "desktop") [
|
(lib.optionals (type == "desktop") [
|
||||||
../themes/cursors/banana-cursor.nix
|
|
||||||
../themes/darkviolet.nix
|
|
||||||
../themes/fonts/sauce-code-pro.nix
|
|
||||||
./modules/hardware/audio.nix
|
./modules/hardware/audio.nix
|
||||||
./modules/hardware/bluetooth.nix
|
./modules/hardware/bluetooth.nix
|
||||||
./modules/programs/getty.nix
|
./modules/programs/getty.nix
|
||||||
./modules/programs/hyprland.nix
|
./modules/programs/hyprland.nix
|
||||||
./modules/programs/hyprlock.nix
|
./modules/programs/hyprlock.nix
|
||||||
inputs.stylix.nixosModules.stylix
|
./modules/stylix.nix
|
||||||
{
|
|
||||||
# Enable basic fonts for reasonable Unicode coverage
|
|
||||||
fonts.enableDefaultPackages = true;
|
|
||||||
|
|
||||||
stylix = {
|
|
||||||
enable = true;
|
|
||||||
image = ../../media/wallpaper.jpg;
|
|
||||||
homeManagerIntegration.autoImport = false;
|
|
||||||
homeManagerIntegration.followSystem = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
])
|
])
|
||||||
(lib.optionals (hostname == "nemesis") [
|
(lib.optionals (hostname == "nemesis") [
|
||||||
./hw-nemesis.nix
|
./hw-nemesis.nix
|
||||||
|
|
21
systems/modules/stylix.nix
Normal file
21
systems/modules/stylix.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ inputs, ... }:
|
||||||
|
let
|
||||||
|
toImport = [
|
||||||
|
../../themes/cursors/banana-cursor.nix
|
||||||
|
../../themes/darkviolet.nix
|
||||||
|
../../themes/fonts/sauce-code-pro.nix
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ inputs.stylix.nixosModules.stylix ] ++ toImport;
|
||||||
|
|
||||||
|
# Enable basic fonts for reasonable Unicode coverage
|
||||||
|
fonts.enableDefaultPackages = true;
|
||||||
|
|
||||||
|
stylix = {
|
||||||
|
enable = true;
|
||||||
|
image = ../../media/wallpaper.jpg;
|
||||||
|
homeManagerIntegration.autoImport = false;
|
||||||
|
homeManagerIntegration.followSystem = false;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue