update flake.lock with new versions for Homebrew and other dependencies; modify manage.sh to use sudo for rebuild commands; add gnu-tar and freelens to homebrew apps; set primary user in system configuration
This commit is contained in:
@@ -21,13 +21,13 @@ case $choice in
|
||||
echo -e "${GREEN}Rebuilding configuration...${NC}"
|
||||
read -p "Enter hostname (default: swaphb-mba): " hostname
|
||||
hostname=${hostname:-swaphb-mba}
|
||||
darwin-rebuild switch --flake .#$hostname
|
||||
sudo darwin-rebuild switch --flake .#$hostname
|
||||
;;
|
||||
2)
|
||||
echo -e "${GREEN}Updating flakes and rebuilding...${NC}"
|
||||
read -p "Enter hostname (default: swaphb-mba): " hostname
|
||||
hostname=${hostname:-swaphb-mba}
|
||||
nix flake update && darwin-rebuild switch --flake .#$hostname
|
||||
nix flake update && sudo darwin-rebuild switch --flake .#$hostname
|
||||
;;
|
||||
3)
|
||||
echo -e "${GREEN}Cleaning nix store...${NC}"
|
||||
|
||||
Reference in New Issue
Block a user