init
This commit is contained in:
commit
aae151cee6
33 changed files with 1351 additions and 0 deletions
19
scripts/rebuild-system.sh
Executable file
19
scripts/rebuild-system.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# rebuild-system.sh - Rebuild nixos configurations
|
||||
#
|
||||
# USAGE:
|
||||
# rebuild-system.sh # Rebuild system with current hostname
|
||||
# rebuild-system.sh hostname # Rebuild specific system
|
||||
#
|
||||
# EXAMPLES:
|
||||
# rebuild-system.sh
|
||||
# rebuild-system.sh makise
|
||||
|
||||
if [ ! -z $1 ]; then
|
||||
export HOST=$1
|
||||
else
|
||||
export HOST=$(hostname)
|
||||
fi
|
||||
|
||||
nixos-rebuild switch --flake .#$HOST --sudo
|
||||
Loading…
Add table
Add a link
Reference in a new issue