summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xrebuild-wsl.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/rebuild-wsl.sh b/rebuild-wsl.sh
index afa93ef..7c095a6 100755
--- a/rebuild-wsl.sh
+++ b/rebuild-wsl.sh
@@ -9,6 +9,5 @@ if [ -d "nixpkgs" ]; then
 fi
 
 nix flake update
-nom build .#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel
-sudo nixos-rebuild switch --flake .#${HOSTNAME}
+nom build .#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel && sudo nixos-rebuild switch --flake .#${HOSTNAME}
 #./build.sh / $HOSTNAME