system.autoUpgrade failed to run

Solved by:

  1. Move ~/mynixosrepo/flakes/x86_64/flake.nix to ~/mynixosrepo/flake.nix (have to combine all architecture into 1 flake.nix, sad).
  2. Change system.autoUpgrade.flake = inputs.self.outPath; to system.autoUpgrade.flake = "path:${rootPath}";
  3. Set rootPath = ./. in flake.nix and pass it to specialArgs as suggested here.

Sorry I didn’t metion it is a git repo.

2 Likes