update scripts to local path, use eachother, and purge garbage

causing issues right now
This commit is contained in:
2025-05-30 11:30:07 +02:00
parent ac9b96dd21
commit cea729933d
2 changed files with 14 additions and 3 deletions

View File

@ -1,2 +1,9 @@
#!/bin/bash #!/bin/bash
sudo nixos-rebuild switch --flake /etc/nixos/#default
# Rebuild the system
sudo nixos-rebuild switch --flake ./#default
# Clean up old generations older than 90 days
sudo nix-collect-garbage --delete-older-than 90d

View File

@ -1,3 +1,7 @@
#!/bin/bash #!/bin/bash
sudo nix flake update /etc/nixos
sudo nixos-rebuild switch --flake /etc/nixos/#default # Update the system
sudo nix flake update ./
# Rebuild the system
./rebuild-nix-system.sh