add rebuild.sh script
This commit is contained in:
10
rebuild.sh
Executable file
10
rebuild.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ "x$1" -eq "x" ]
|
||||
then
|
||||
h = "$(hostname -s)"
|
||||
else
|
||||
h = "$1"
|
||||
fi
|
||||
|
||||
nixos-rebuild --flake /etc/nixos#${h} dry-run
|
||||
Reference in New Issue
Block a user