Home-manager-auto-upgrade.service is failing

Issue Descriptions: home-manager-auto-upgrades.service is failing with error:

Loaded: loaded (]8;;file://nixos/home/sukhman/.config/systemd/user/home-manager-auto-upgrade.serviceG/home/sukhman/.config/systemd/user/home-manager-auto-upgrade.ser
     Active: failed (Result: exit-code) since Fri 2023-09-15 00:28:53 EDT; 3min 13s ago
   Duration: 135ms
TriggeredBy: ● home-manager-auto-upgrade.timer
   Main PID: 72713 (code=exited, status=1/FAILURE)
        CPU: 118ms

Sep 15 00:28:53 nixos systemd[1432]: Started Home Manager upgrade.
Sep 15 00:28:53 nixos fgifdgiqvmd2mnp9b88i49lz3cda3f8g-home-manager-auto-upgrade[72713]: Update Nix's channels
Sep 15 00:28:53 nixos fgifdgiqvmd2mnp9b88i49lz3cda3f8g-home-manager-auto-upgrade[72715]: unpacking channels...
Sep 15 00:28:53 nixos fgifdgiqvmd2mnp9b88i49lz3cda3f8g-home-manager-auto-upgrade[72713]: Upgrade Home Manager
Sep 15 00:28:53 nixos fgifdgiqvmd2mnp9b88i49lz3cda3f8g-home-manager-auto-upgrade[72739]: error: file 'home-manager/home-manager/home-manager.nix' was not found in the Nix
Sep 15 00:28:53 nixos fgifdgiqvmd2mnp9b88i49lz3cda3f8g-home-manager-auto-upgrade[72739]:        at «none»:0: (source not available)
Sep 15 00:28:53 nixos systemd[1432]: home-manager-auto-upgrade.service: Main process exited, code=exited, status=1/FAILURE
Sep 15 00:28:53 nixos systemd[1432]: home-manager-auto-upgrade.service: Failed with result 'exit-code'.

Here is my home.nix:

# automatic home upgrades
  47   │   # fix for https://github.com/nix-community/home-manager/issues/3127
  48   │   systemd.user.sessionVariables = {
  49   │     NIX_PATH = "$HOME/.nix-defexpr/channels:$NIX_PATH";
  50   │   };
  51   │   systemd.user.services.home-manager-auto-upgrade.Service.Environment = let
  52   │     path = lib.makeSearchPath "bin" [ pkgs.nix ];
  53   │   in [
  54   │     "PATH=${path}"
  55   │   ];
  56   │
  57   │   services.home-manager.autoUpgrade.enable = true;
  58   │   services.home-manager.autoUpgrade.frequency = "daily";

The script (in my case /nix/store/6ajbn5vam8krzd832ciynfcqqhrs11s7-home-manager/bin/home-manager switch) that is been executed by this service is working fine (i.e. I can run the script manually):

$ bat /nix/store/fgifdgiqvmd2mnp9b88i49lz3cda3f8g-home-manager-auto-upgrade
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /nix/store/fgifdgiqvmd2mnp9b88i49lz3cda3f8g-home-manager-auto-upgrade
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ #!/nix/store/m36d29gn5gm9bk0g7fcln1v8171hvn95-bash-5.2-p15/bin/bash
   2   │ echo "Update Nix's channels"
   3   │ /nix/store/vxx4c6gc2zgfw870b40f06dmli6ljp34-nix-2.17.0/bin/nix-channel --update
   4   │ echo "Upgrade Home Manager"
   5   │ /nix/store/6ajbn5vam8krzd832ciynfcqqhrs11s7-home-manager/bin/home-manager switch

NixOS System:

 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.52, NixOS, 23.11 (Tapir), 23.11pre524605.3a2786eea085`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.0`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`