Move user configuration into profiles

This commit is contained in:
SebastianStork 2026-02-04 20:31:11 +01:00
parent f1e10f728e
commit 7ab6b77048
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
7 changed files with 41 additions and 55 deletions

View file

@ -9,14 +9,15 @@ let
hostName:
inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs self; };
modules = [
{ networking = { inherit hostName; }; }
"${self}/hosts/${hostName}/default.nix"
"${self}/hosts/${hostName}/hardware.nix"
"${self}/hosts/${hostName}/disko.nix"
"${self}/users/seb"
]
++ lib.optional (lib.pathExists "${self}/users/seb/@${hostName}") "${self}/users/seb/@${hostName}";
modules =
(lib.singleton { networking = { inherit hostName; }; })
++ (
"${self}/hosts/${hostName}"
|> builtins.readDir
|> lib.attrNames
|> lib.filter (file: file |> lib.hasSuffix ".nix")
|> lib.map (file: "${self}/hosts/${hostName}/${file}")
);
};
in
{