Browse Source

add nix-maintenance.sh

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

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