summaryrefslogtreecommitdiff
path: root/nixos/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/Makefile')
-rw-r--r--nixos/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/Makefile b/nixos/Makefile
new file mode 100644
index 0000000..ba8182a
--- /dev/null
+++ b/nixos/Makefile
@@ -0,0 +1,5 @@
+all:
+ sudo nixos-rebuild switch -I nixos-config=`hostname`.nix
+
+up:
+ sudo nixos-rebuild switch --upgrade -I nixos-config=`hostname`.nix