summaryrefslogtreecommitdiffstats
path: root/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-07-27 16:26:50 +0200
committertv <tv@krebsco.de>2015-07-27 16:26:50 +0200
commit12fef7dc552c2399d9a54f4ff68b78be6ff812c3 (patch)
tree4658059a3d02d5aacaf2712383a2fbacae0cca00 /3modules
parent300dcb9ef35ba89b03f0a01cbefdf299bd5faef2 (diff)
krebs.build.script: update system profile
Diffstat (limited to '3modules')
-rw-r--r--3modules/krebs/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/3modules/krebs/default.nix b/3modules/krebs/default.nix
index 2b20613..32c9368 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
'';
};