feat: migrate to Stylix (WIP)

This commit is contained in:
2025-05-02 22:02:50 +02:00
parent f5e7a09123
commit 9a29bd9449
23 changed files with 402 additions and 344 deletions

View File

@ -2,6 +2,8 @@
let
inherit (self) inputs;
lib = inputs.nixpkgs.lib;
homeDir = self + /profiles;
mkSystem =
@ -10,24 +12,16 @@ let
hostname,
useHomeManager ? true,
modules ? [ ],
}:
inputs.nixpkgs.lib.nixosSystem {
}: lib.nixosSystem {
specialArgs = { inherit inputs; };
modules =
[
./base-configuration.nix
./${hostname}
homeDir
]
++ (
if useHomeManager then
[
inputs.home-manager.nixosModules.home-manager
]
else
[ ]
)
++ modules;
]
++ lib.lists.optionals useHomeManager [ inputs.home-manager.nixosModules.default ]
++ modules;
};
in
{