This commit is contained in:
death916 2026-03-11 09:11:00 -07:00
parent a59793db09
commit 19c46b4a2a
2 changed files with 4 additions and 4 deletions

View file

@ -247,7 +247,7 @@ in
functions = { functions = {
nh-push = { nh-push = {
body = '' body = ''
/home/death916/Documents/nix-config/scripts/nh-push $argv bash ~/Documents/nix*config/scripts/nh-push $argv
''; '';
description = "Wrapper for nh that runs git pull and git push on success"; description = "Wrapper for nh that runs git pull and git push on success";
}; };
@ -270,7 +270,7 @@ in
homelab = "tailscale ssh homelab"; homelab = "tailscale ssh homelab";
urldecode = "python3 -c 'import sys, urllib.parse as ul; print(ul.unquote_plus(sys.stdin.read()))'"; urldecode = "python3 -c 'import sys, urllib.parse as ul; print(ul.unquote_plus(sys.stdin.read()))'";
urlencode = "python3 -c 'import sys, urllib.parse as ul; print(ul.quote_plus(sys.stdin.read()))'"; urlencode = "python3 -c 'import sys, urllib.parse as ul; print(ul.quote_plus(sys.stdin.read()))'";
nh-push = "/home/death916/Documents/nix-config/scripts/nh-push"; nh-push = "bash ~/Documents/nix*config/scripts/nh-push";
l = "eza -alh --icons"; l = "eza -alh --icons";
}; };
}; };

View file

@ -25,8 +25,8 @@ fi
# --- NixOS Build --- # --- NixOS Build ---
echo "Building NixOS configuration..." echo "Building NixOS configuration..."
# Use --flake to specify the flake path. # Use -H to specify the hostname and provide the flake directory path.
nh os switch ".#$@" nh os switch "$REPO_ROOT" -H "$@"
# --- Git Push on Success --- # --- Git Push on Success ---
echo "NixOS rebuild successful. Pushing to remote..." echo "NixOS rebuild successful. Pushing to remote..."