This commit is contained in:
2026-05-29 20:54:22 -05:00
parent 5cd20d6a35
commit 5f994ccf0a
9 changed files with 378 additions and 23 deletions
+11 -1
View File
@@ -25,6 +25,16 @@ ga() {
rerice() {
local flake_dir="/etc/rice-flakes"
host="${1:-$(hostname -s)}"
local host="$(hostname -s)"
local OPTIND=1
while getopts ":h:" opt; do
case $opt in
h) host="$OPTARG" ;;
:) echo "Option -$OPTARG requires an argument." >&2; return 1 ;;
\?) echo "Unknown option: -$OPTARG" >&2; return 1 ;;
esac
done
sudo nixos-rebuild switch --flake "${flake_dir}#${host}"
}