diff --git a/nixos/expire-home-manager-generations.sh b/nixos/expire-home-manager-generations.sh new file mode 100755 index 00000000..a0a65561 --- /dev/null +++ b/nixos/expire-home-manager-generations.sh @@ -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