diff --git a/modules/environment/impermanence.nix b/modules/environment/impermanence.nix index b7e7f7f3..5f1a75bc 100644 --- a/modules/environment/impermanence.nix +++ b/modules/environment/impermanence.nix @@ -55,7 +55,7 @@ with lib; { 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" done diff --git a/modules/environment/user-impermanence.nix b/modules/environment/user-impermanence.nix index 99a329ad..61f94f08 100644 --- a/modules/environment/user-impermanence.nix +++ b/modules/environment/user-impermanence.nix @@ -65,7 +65,7 @@ with lib; { ${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" done