Auto import files instead of maintaining file list.
This commit is contained in:
parent
081d10bc21
commit
c543303ab9
15 changed files with 12 additions and 99 deletions
|
@ -12,16 +12,16 @@ let
|
|||
hostVal
|
||||
(fileContents /secret/hostName);
|
||||
machinePath = (builtins.toPath ( ./machines + ("/" + hostName)));
|
||||
machineConf = machinePath + "/configuration.nix";
|
||||
machineOpts = machinePath + "/options.nix";
|
||||
machineFiles = fn.lst { p = machinePath; b = true; };
|
||||
configFiles = fn.lst { p = (toString ./config); b = true; };
|
||||
pkgsFiles = fn.lst { p = (toString ./pkgs); b = true; };
|
||||
serviceFiles = fn.lst { p = (toString ./services); b = true; };
|
||||
in {
|
||||
imports = [
|
||||
machineConf
|
||||
machineOpts
|
||||
./config/default.nix
|
||||
./pkgs/nixpkgs.nix
|
||||
./pkgs/systemPackages.nix
|
||||
./services/containers.nix
|
||||
./services/default.nix
|
||||
];
|
||||
./options/machine.nix
|
||||
./services/mailserver/default.nix
|
||||
] ++ machineFiles
|
||||
++ configFiles
|
||||
++ pkgsFiles
|
||||
++ serviceFiles;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue