From 2eb2e902b29a2243aadb93fac293abc76630de0d Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Mon, 17 Nov 2025 17:29:42 -0600 Subject: [PATCH] script stuff --- modules/nixos/services/attic/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/modules/nixos/services/attic/default.nix b/modules/nixos/services/attic/default.nix index 2f69fcf..acdffb1 100644 --- a/modules/nixos/services/attic/default.nix +++ b/modules/nixos/services/attic/default.nix @@ -77,6 +77,9 @@ in #!/usr/bin/env bash if [ -d .git ]; then git pull || echo "Warning: Could not pull latest changes" + git stash + git pull || echo "Warning: Could not pull latest changes after stash" + return 1 fi echo "Updating flake at $(date)" if nix flake update; then @@ -85,34 +88,34 @@ in echo "failed to update flake $(date)" fi - if NIXPKGS_ALLOW_UNFREE=1 nix flake check --impure; then + if nix flake check; then echo "flake checked successfully at $(date)" else echo "flake check failed at $(date)" git reset --hard fi - if nh os build --hostname=nas; then + if nh os build --hostname=jallen-nas --out-link=result-nas; then echo "nas built successfully at $(date)" fi; - if nh os build --hostname=nuc; then + if nh os build --hostname=nuc-nixos --out-link=result-nuc; then echo "nuc built successfully at $(date)" fi; - if nh os build --hostname=desktop; then + if nh os build --hostname=matt-nixos --out-link=result-desktop; then echo "desktop built successfully at $(date)" fi; - if nh os build --hostname=steamdeck; then + if nh os build --hostname=steamdeck --out-link=result-steamdeck; then echo "steamdeck built successfully at $(date)" fi; - if nh os build --hostname=pi4; then + if nh os build --hostname=pi4 --out-link=result-pi4; then echo "pi4 built successfully at $(date)" fi; - if nh os build --hostname=pi5; then + if nh os build --hostname=pi5 --out-link=result-pi5; then echo "pi5 built successfully at $(date)" fi; '';