Add btrfs balance to off
script
This commit is contained in:
parent
d8fad1200d
commit
814ea33ba7
2 changed files with 7 additions and 2 deletions
|
@ -216,13 +216,17 @@ in
|
|||
sudo nix-channel --update
|
||||
nix-channel --update
|
||||
|
||||
# User
|
||||
# User packages
|
||||
home-manager expire-generations '-7 days'
|
||||
home-manager switch
|
||||
|
||||
# System
|
||||
# System packages
|
||||
sudo nixos-rebuild boot
|
||||
|
||||
# Filesystem
|
||||
btrfs filesystem df /
|
||||
sudo btrfs balance start --enqueue -dusage=50 -musage=50 /
|
||||
|
||||
sudo poweroff
|
||||
'')
|
||||
];
|
||||
|
|
|
@ -88,6 +88,7 @@ in
|
|||
{
|
||||
groups = [ "wheel" ];
|
||||
commands = [
|
||||
{ command = "/run/current-system/sw/bin/btrfs balance start --enqueue -dusage=50 -musage=50 /"; options = [ "NOPASSWD" ]; }
|
||||
{ command = "/run/current-system/sw/bin/nix-channel --update"; options = [ "NOPASSWD" ]; }
|
||||
{ command = "/run/current-system/sw/bin/nixos-rebuild boot"; options = [ "NOPASSWD" ]; }
|
||||
{ command = "/run/current-system/sw/bin/nixos-rebuild switch"; options = [ "NOPASSWD" ]; }
|
||||
|
|
Loading…
Reference in a new issue