diff --git a/home/baseline/nushell/functions.nu b/home/baseline/nushell/functions.nu index 11b5fd1..d7ca3ae 100644 --- a/home/baseline/nushell/functions.nu +++ b/home/baseline/nushell/functions.nu @@ -20,7 +20,7 @@ def rebuild [] { let build = ^nom build --keep-going $"/etc/nixos#nixosConfigurations.($hostname).config.system.build.toplevel" if $env.LAST_EXIT_CODE == 0 { nvd diff /run/current-system result - run0 nixos-rebuild switch + run0 result/bin/switch-to-configuration switch } else { print "Error during build" }