krebs.build.script: update system profile
This commit is contained in:
parent
d720588fb5
commit
6fcb2682db
@ -107,15 +107,18 @@ let
|
|||||||
'') config.deps)}
|
'') config.deps)}
|
||||||
|
|
||||||
echo build system...
|
echo build system...
|
||||||
|
profile=/nix/var/nix/profiles/system
|
||||||
NIX_PATH=/root/src \
|
NIX_PATH=/root/src \
|
||||||
nix-build \
|
nix-env \
|
||||||
-Q \
|
-Q \
|
||||||
|
-p "$profile" \
|
||||||
|
-f '<stockholm>' \
|
||||||
|
--set \
|
||||||
-A system \
|
-A system \
|
||||||
'<stockholm>' \
|
|
||||||
--argstr user-name ${escapeShellArg cfg.build.user.name} \
|
--argstr user-name ${escapeShellArg cfg.build.user.name} \
|
||||||
--argstr system-name ${escapeShellArg cfg.build.host.name}
|
--argstr system-name ${escapeShellArg cfg.build.host.name}
|
||||||
|
|
||||||
exec result/bin/switch-to-configuration switch
|
exec "$profile"/bin/switch-to-configuration switch
|
||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user