nix-config/nix-maintenance.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
173 B
Bash
Raw Normal View History

2019-02-18 19:56:44 +01:00
#!/usr/bin/env bash
set -ex
sudo nix-channel --update
time nix-env -- -u \*
time sudo nixos-rebuild switch
time sudo nix-collect-garbage -d
time sudo nix-store --optimise