flake: avoid regenerating file list for every machine

This commit is contained in:
Kevin Baensch 2025-07-04 17:24:50 +02:00
parent 88a6a90ab2
commit 465a6b19d1
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -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