From 465a6b19d1d5124ae67e71c6ac4088749fc4a042 Mon Sep 17 00:00:00 2001 From: derped Date: Fri, 4 Jul 2025 17:24:50 +0200 Subject: [PATCH] flake: avoid regenerating file list for every machine --- flake.nix | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index d539b2f..3b2c55e 100644 --- a/flake.nix +++ b/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