add nix-maintenance.sh

container/radius
Astro 4 years ago
parent 96e19766a7
commit 0c9ce308c2
  1. 10
      nix-maintenance.sh

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -x
set -e
sudo nix-channel --update
time nix-env -- -u \*
time sudo nixos-rebuild switch
time sudo nix-collect-garbage -d
time sudo nix-store --optimise
Loading…
Cancel
Save