[NixOS] Add script to expire home manager generations

This commit is contained in:
Ivan Malison 2023-12-16 13:35:37 -07:00
parent 1db30187cb
commit 6b8789d566

View 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