Split build and switch
This commit is contained in:
parent
2a0c27b031
commit
7e23a48ed1
3 changed files with 5 additions and 3 deletions
3
build.sh
3
build.sh
|
@ -9,5 +9,4 @@ then
|
|||
BUILD_ARGS+=("--override-input" "nixpkgs" "../nixpkgs" "--no-write-lock-file")
|
||||
fi
|
||||
|
||||
sudo nix build --profile /nix/var/nix/profiles/system ".#nixosConfigurations.$(hostname).config.system.build.toplevel" --no-link "${BUILD_ARGS[@]}" && \
|
||||
sudo nix shell -vv /nix/var/nix/profiles/system -c switch-to-configuration switch
|
||||
sudo nix build --profile /nix/var/nix/profiles/system ".#nixosConfigurations.$(hostname).config.system.build.toplevel" --no-link "${BUILD_ARGS[@]}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue