add nix-maintenance.sh

このコミットが含まれているのは:
Astro 2019-02-18 19:56:44 +01:00
コミット 0c9ce308c2
1個のファイルの変更10行の追加0行の削除

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