diff --git a/modules/files.nix b/modules/files.nix index 50dc50018..217496493 100644 --- a/modules/files.nix +++ b/modules/files.nix @@ -239,7 +239,7 @@ in } function cleanOldGen() { - if [[ ! -v oldGenPath ]] ; then + if [[ ! -v oldGenPath || ! -e "$oldGenPath/home-files" ]] ; then return fi