Solved by:
- Move
~/mynixosrepo/flakes/x86_64/flake.nixto~/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 tospecialArgsas suggested here.
Sorry I didn’t metion it is a git repo.