diff options
author | tv <tv@shackspace.de> | 2015-07-27 16:26:50 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-07-27 16:26:50 +0200 |
commit | 6fcb2682dbb4ae4dd23f821ff1adfcb7a0550a88 (patch) | |
tree | bb780cf840dd74e87735c74147fe5ab459083565 /3modules/krebs | |
parent | d720588fb5f52e587a311c0960b5e623733d33dd (diff) |
krebs.build.script: update system profile
Diffstat (limited to '3modules/krebs')
-rw-r--r-- | 3modules/krebs/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/3modules/krebs/default.nix b/3modules/krebs/default.nix index 2b20613ca..32c936891 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 ''; }; |