fix(switch.sh): actually add the generation to nix profiles
This commit is contained in:
parent
c42d820096
commit
630b1d63c5
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ read -n1 -rp "${bold}Activate new configuration? [y/N]$reset " answer
|
|||
echo
|
||||
|
||||
if [[ $answer =~ ^[Yy]$ ]]; then
|
||||
sudo nix-env --profile /nix/var/nix/profiles/system --set "$configuration"
|
||||
sudo "$configuration/bin/switch-to-configuration" switch
|
||||
else
|
||||
echo "${bold}Not activating :($reset"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue