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";
|
fileType = "directory";
|
||||||
fullPath = false;
|
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: {
|
nixosSystemFor = machine: {
|
||||||
name = machine;
|
name = machine;
|
||||||
value =
|
value =
|
||||||
let
|
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 "/" [
|
machinePath = lib.concatStringsSep "/" [
|
||||||
(toString ./machines)
|
(toString ./machines)
|
||||||
machine
|
machine
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue