summaryrefslogtreecommitdiffstats
path: root/3modules/krebs
diff options
context:
space:
mode:
Diffstat (limited to '3modules/krebs')
-rw-r--r--3modules/krebs/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/3modules/krebs/default.nix b/3modules/krebs/default.nix
index b9b6bcf34..9e25df0bf 100644
--- a/3modules/krebs/default.nix
+++ b/3modules/krebs/default.nix
@@ -107,15 +107,18 @@ let
'') config.deps)}
echo build system...
+ profile=/nix/var/nix/profiles/system
NIX_PATH=/root/src \
- nix-build \
+ nix-env \
-Q \
+ -p "$profile" \
+ -f '<stockholm>' \
+ --set \
-A system \
- '<stockholm>' \
--argstr user-name ${escapeShellArg cfg.build.user.name} \
--argstr system-name ${escapeShellArg cfg.build.host.name}
- exec result/bin/switch-to-configuration switch
+ exec "$profile"/bin/switch-to-configuration switch
EOF
'';
};
@@ -151,8 +154,7 @@ let
# TODO search-domains :: listOf hostname
search-domain = mkOption {
type = types.hostname;
- default = "";
- example = "retiolum";
+ default = "retiolum";
};
};