summaryrefslogtreecommitdiff
path: root/switch
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-05-13 16:11:36 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-05-13 16:11:36 -0500
commit9e1babadd0f67e59ed207c22d451ca33c223f584 (patch)
treed7af71ba6ddac097ef4b187e8bdcab16039f663b /switch
parent773a42e3c8f1cbe26b48eb7c9801b38899ae62d6 (diff)
downloadnixos-config-9e1babadd0f67e59ed207c22d451ca33c223f584.tar.gz
nixos-config-9e1babadd0f67e59ed207c22d451ca33c223f584.zip
Add new command to pull repo and run nixos-rebuild switch
Diffstat (limited to 'switch')
-rwxr-xr-xswitch7
1 files changed, 7 insertions, 0 deletions
diff --git a/switch b/switch
new file mode 100755
index 0000000..eafccaf
--- /dev/null
+++ b/switch
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+cd "$(dirname "$($0)")"
+git pull
+nixos-rebuild switch --flake .