refactor: move stylix to module

This commit is contained in:
Mohammad Rafiq 2025-03-27 00:58:41 +08:00
parent 57dbec7eeb
commit d4ecb78824
No known key found for this signature in database
2 changed files with 22 additions and 15 deletions

View file

@ -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

View 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;
};
}