summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-10-14 16:00:07 +0200
committerlassulus <lassulus@lassul.us>2019-10-14 16:00:07 +0200
commit539f4f09fc31552f58b0d32eec2a7b22000d3939 (patch)
tree942375e1809cba7a57a8a6474937ab8864118da8 /lass
parent66816ee636d21582ad0e50b6fcdce0fdc2b26f71 (diff)
l krops: make source.nix overrideable
Diffstat (limited to 'lass')
-rw-r--r--lass/krops.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/lass/krops.nix b/lass/krops.nix
index 12652216a..c1fbe2841 100644
--- a/lass/krops.nix
+++ b/lass/krops.nix
@@ -5,11 +5,6 @@
pkgs
;
- host-source = if lib.pathExists (./. + "/1systems/${name}/source.nix") then
- import (./. + "/1systems/${name}/source.nix") { inherit lib pkgs; }
- else
- {}
- ;
source = { test }: lib.evalSource ([
(krebs-source { test = test; })
@@ -24,7 +19,12 @@
};
};
}
- ] ++ (lib.optional (! test) host-source));
+ (if lib.pathExists (./. + "/1systems/${name}/source.nix") then
+ import (./. + "/1systems/${name}/source.nix") { inherit lib pkgs test; }
+ else
+ {}
+ )
+ ]);
in {