use atime for deletion
All checks were successful
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #23787 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #23786 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #23785 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.not522 Hydra build #23788 of nixos-config:pr618:nixosConfigurations.not522
Hydra checks.x86_64-linux.containers-default Hydra build #23784 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.pc-installer Hydra build #23790 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.not522-installer Hydra build #23789 of nixos-config:pr618:nixosConfigurations.not522-installer

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-05 15:52:50 +01:00
parent 8e7c3cfc7e
commit 5cc5680312
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ with lib; {
btrfs subvolume delete "$1" btrfs subvolume delete "$1"
} }
for i in $(find /btrfs_tmp/old_roots/ -maxdepth 1 -mtime +30); do for i in $(find /btrfs_tmp/old_roots/ -maxdepth 1 -atime +30); do
delete_subvolume_recursively "$i" delete_subvolume_recursively "$i"
done done

View file

@ -65,7 +65,7 @@ with lib; {
${pkgs.btrfs-progs}/bin/btrfs subvolume delete "$1" ${pkgs.btrfs-progs}/bin/btrfs subvolume delete "$1"
} }
for i in $(find /persistent/old-homedirs/${name} -maxdepth 1 -mtime +30); do for i in $(find /persistent/old-homedirs/${name} -maxdepth 1 -atime +30); do
delete_subvolume_recursively "$i" delete_subvolume_recursively "$i"
done done