forked from c3d2/nix-config
Fix NIXOS_REBUILD
This commit is contained in:
parent
df33a192cc
commit
bcacedf7aa
|
@ -201,13 +201,13 @@ lib.attrsets.mapAttrs
|
|||
|
||||
${createSymlinks name}
|
||||
|
||||
if [[ -n $NIXOS_REBUILD ]]; then
|
||||
if [[ -z \\''${NIXOS_REBUILD:-} ]]; then
|
||||
echo "Restarting MicroVM..."
|
||||
systemctl restart microvm@${name}.service
|
||||
fi
|
||||
END
|
||||
|
||||
if [[ -z $NIXOS_REBUILD ]]; then
|
||||
if [[ -n ''${NIXOS_REBUILD:-} ]]; then
|
||||
echo "Switching to configuration..."
|
||||
ssh ${target} -- ${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user