flake: avoid regenerating file list for every machine
This commit is contained in:
parent
88a6a90ab2
commit
465a6b19d1
1 changed files with 12 additions and 12 deletions
24
flake.nix
24
flake.nix
|
@ -43,22 +43,22 @@
|
|||
fileType = "directory";
|
||||
fullPath = false;
|
||||
};
|
||||
configFiles = fn.lst {
|
||||
path = toString ./config;
|
||||
fullPath = true;
|
||||
};
|
||||
pkgsFiles = fn.lst {
|
||||
path = toString ./pkgs;
|
||||
fullPath = true;
|
||||
};
|
||||
serviceFiles = fn.lst {
|
||||
path = toString ./services;
|
||||
fullPath = true;
|
||||
};
|
||||
nixosSystemFor = machine: {
|
||||
name = machine;
|
||||
value =
|
||||
let
|
||||
configFiles = fn.lst {
|
||||
path = toString ./config;
|
||||
fullPath = true;
|
||||
};
|
||||
pkgsFiles = fn.lst {
|
||||
path = toString ./pkgs;
|
||||
fullPath = true;
|
||||
};
|
||||
serviceFiles = fn.lst {
|
||||
path = toString ./services;
|
||||
fullPath = true;
|
||||
};
|
||||
machinePath = lib.concatStringsSep "/" [
|
||||
(toString ./machines)
|
||||
machine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue