mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
Move user configuration into profiles
This commit is contained in:
parent
f1e10f728e
commit
7ab6b77048
7 changed files with 41 additions and 55 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue