Home manager failing after recent update

Hi. Today I did nix flake update and ten rebuild switch and from that moment every time I try to rebuild switch, home manager service is producing error. After reboot everything seems fine again. systemctl status shows this:

× home-manager-rstasta.service - Home Manager environment for rstasta
     Loaded: loaded (/etc/systemd/system/home-manager-rstasta.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Tue 2024-06-18 21:33:08 CEST; 40s ago
   Duration: 4h 26min 13.763s
    Process: 50690 ExecStart=/nix/store/lrz4bz345yrlydiifi2j3lyqjyq85fm9-hm-setup-env /nix/store/vapqcg70gfyj784ysh3x1qw5p2hkd9wp-home-manager-generation (code=exited, status=1/FAILURE)
   Main PID: 50690 (code=exited, status=1/FAILURE)
         IP: 0B in, 0B out
        CPU: 1.269s

čen 18 21:33:08 nixos hm-activate-rstasta[50690]: Activating onFilesChange
čen 18 21:33:08 nixos hm-activate-rstasta[50690]: Activating reloadSystemd
čen 18 21:33:08 nixos hm-activate-rstasta[52076]: Error: Error switching
čen 18 21:33:08 nixos hm-activate-rstasta[52076]: Caused by:
čen 18 21:33:08 nixos hm-activate-rstasta[52076]:     0: Failed to build switch plan
čen 18 21:33:08 nixos hm-activate-rstasta[52076]:     1: No such file or directory (os error 2)
čen 18 21:33:08 nixos systemd[1]: home-manager-rstasta.service: Main process exited, code=exited, status=1/FAILURE
čen 18 21:33:08 nixos systemd[1]: home-manager-rstasta.service: Failed with result 'exit-code'.
čen 18 21:33:08 nixos systemd[1]: Failed to start Home Manager environment for rstasta.