diff --git a/modules/files.nix b/modules/files.nix index d6b5eb643..8db317fb4 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