about summary refs log tree commit diff stats
path: root/home-manager/packages/scripts/small_functions/update
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/packages/scripts/small_functions/update')
-rwxr-xr-xhome-manager/packages/scripts/small_functions/update10
1 files changed, 10 insertions, 0 deletions
diff --git a/home-manager/packages/scripts/small_functions/update b/home-manager/packages/scripts/small_functions/update
new file mode 100755
index 00000000..453e8bc8
--- /dev/null
+++ b/home-manager/packages/scripts/small_functions/update
@@ -0,0 +1,10 @@
+#!/usr/bin/env dash
+# shellcheck disable=SC2086
+# shellcheck source=/dev/null
+. %SHELL_LIBRARY_PATH
+
+cd /etc/nixos
+git pull
+nixos-rebuild switch
+
+