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") [
|
||||
../themes/cursors/banana-cursor.nix
|
||||
../themes/darkviolet.nix
|
||||
../themes/fonts/sauce-code-pro.nix
|
||||
./modules/hardware/audio.nix
|
||||
./modules/hardware/bluetooth.nix
|
||||
./modules/programs/getty.nix
|
||||
./modules/programs/hyprland.nix
|
||||
./modules/programs/hyprlock.nix
|
||||
inputs.stylix.nixosModules.stylix
|
||||
{
|
||||
# Enable basic fonts for reasonable Unicode coverage
|
||||
fonts.enableDefaultPackages = true;
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
image = ../../media/wallpaper.jpg;
|
||||
homeManagerIntegration.autoImport = false;
|
||||
homeManagerIntegration.followSystem = false;
|
||||
};
|
||||
}
|
||||
./modules/stylix.nix
|
||||
])
|
||||
(lib.optionals (hostname == "nemesis") [
|
||||
./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