This commit is contained in:
2025-08-12 18:46:45 +00:00
parent fd7ad5cf86
commit 874d79f456
10 changed files with 69 additions and 45 deletions

View File

@@ -26,10 +26,10 @@ FLAKE_SYSTEM="darwinConfigurations.${MACHINE_NAME}.system"
echo "${YELLOW}Building configuration for machine: ${MACHINE_NAME}${NC}"
NIXPKGS_ALLOW_UNFREE=1 nix --extra-experimental-features 'nix-command flakes' build --impure .#$FLAKE_SYSTEM "$@"
nix --extra-experimental-features 'nix-command flakes' build .#$FLAKE_SYSTEM "$@"
echo "${YELLOW}Switching to new generation...${NC}"
sudo NIXPKGS_ALLOW_UNFREE=1 ./result/sw/bin/darwin-rebuild switch --impure --flake .#${MACHINE_NAME}
sudo ./result/sw/bin/darwin-rebuild switch --flake .#${MACHINE_NAME}
echo "${YELLOW}Cleaning up...${NC}"
unlink ./result