[NixOS] Add script to expire home manager generations
This commit is contained in:
parent
1db30187cb
commit
6b8789d566
7
nixos/expire-home-manager-generations.sh
Executable file
7
nixos/expire-home-manager-generations.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
users=("root" "imalison" "kat" "dean" "alex" "will" "mike")
|
||||
|
||||
for user in "${users[@]}"; do
|
||||
sudo su - $user -c 'home-manager expire-generations -15days'
|
||||
done
|
Loading…
Reference in New Issue
Block a user