mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Simplify user config structure
This commit is contained in:
parent
33cad0b00c
commit
52c510d612
9 changed files with 22 additions and 31 deletions
|
|
@ -21,12 +21,13 @@ let
|
|||
|> builtins.readDir
|
||||
|> lib.filterAttrs (_: type: type == "directory")
|
||||
|> lib.attrNames
|
||||
|> map (user: "${self}/users/${user}/@${hostName}")
|
||||
|> map (user: "${self}/users/${user}/@${hostName}/default.nix")
|
||||
|> lib.filter (path: lib.pathExists path);
|
||||
in
|
||||
[
|
||||
{ networking = { inherit hostName; }; }
|
||||
"${self}/hosts/common.nix"
|
||||
"${self}/users/seb/default.nix"
|
||||
]
|
||||
++ hostFiles
|
||||
++ userFiles;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue