improve rebuild script
This commit is contained in:
parent
73cd331583
commit
b82f229a6b
|
@ -10,5 +10,13 @@ sudo ${BASH_SOURCE[0]} $@
|
|||
exit
|
||||
fi
|
||||
|
||||
MODE=${1-}
|
||||
if [ -z "${MODE}" ]; then
|
||||
MODE=switch
|
||||
else
|
||||
shift
|
||||
fi
|
||||
|
||||
|
||||
sudo cpupower frequency-set -g performance
|
||||
nixos-rebuild --flake "${REPO_ROOT}#$(hostname)" switch $@
|
||||
nixos-rebuild --flake "${REPO_ROOT}#$(hostname)" "$MODE" "$@"
|
||||
|
|
Loading…
Reference in a new issue