diff options
author | lassulus <lassulus@lassul.us> | 2019-10-14 16:00:07 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2019-10-14 16:00:07 +0200 |
commit | 539f4f09fc31552f58b0d32eec2a7b22000d3939 (patch) | |
tree | 942375e1809cba7a57a8a6474937ab8864118da8 | |
parent | 66816ee636d21582ad0e50b6fcdce0fdc2b26f71 (diff) |
l krops: make source.nix overrideable
-rw-r--r-- | lass/krops.nix | 12 |
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 { |