Solved by:
- Move
~/mynixosrepo/flakes/x86_64/flake.nix
to~/mynixosrepo/flake.nix
(have to combine all architecture into 1 flake.nix, sad). - Change
system.autoUpgrade.flake = inputs.self.outPath;
tosystem.autoUpgrade.flake = "path:${rootPath}";
- Set
rootPath = ./.
in flake.nix and pass it tospecialArgs
as suggested here.
Sorry I didn’t metion it is a git repo.