summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-05-14 11:07:36 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-05-14 11:07:36 -0500
commit9ac94ce13cafeed70d0e877101289ac07afbb445 (patch)
tree78a6c70b5bf501fb2ba51e76c723c82517170ee2
parenta5d7c55a8a419ebe6bc41da0363464309911c50e (diff)
downloadnixos-config-9ac94ce13cafeed70d0e877101289ac07afbb445.tar.gz
nixos-config-9ac94ce13cafeed70d0e877101289ac07afbb445.zip
Add equivalents to the switch command for nixos-rebuild {boot,test}
l---------boot1
-rwxr-xr-xswitch2
l---------test1
3 files changed, 3 insertions, 1 deletions
diff --git a/boot b/boot
new file mode 120000
index 0000000..b2c71e7
--- /dev/null
+++ b/boot
@@ -0,0 +1 @@
+switch \ No newline at end of file
diff --git a/switch b/switch
index 6f232e1..b115a21 100755
--- a/switch
+++ b/switch
@@ -4,4 +4,4 @@ set -e
cd "$(dirname "$0")"
git pull
-nixos-rebuild switch --flake .
+nixos-rebuild "$(basename "$0")" --flake .
diff --git a/test b/test
new file mode 120000
index 0000000..b2c71e7
--- /dev/null
+++ b/test
@@ -0,0 +1 @@
+switch \ No newline at end of file