nix-community/nixos-anywhere

Only uses old version of config

Closed this issue · 1 comments

Running the following:

nix run --show-trace github:nix-community/nixos-anywhere -- --flake .#antikythera root@10.3.0.107

returns the following error:

warning: Git tree '/home/erahhal/Code/nixcfg' is dirty
error:
       … while calling the 'seq' builtin

         at /nix/store/61502m9h1jl40j7sxbcyjdm6qi1k7x97-source/lib/modules.nix:322:18:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       … while evaluating a branch condition

         at /nix/store/61502m9h1jl40j7sxbcyjdm6qi1k7x97-source/lib/modules.nix:261:9:

          260|       checkUnmatched =
          261|         if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
             |         ^
          262|           let

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: getting status of '/nix/store/h7i11vk9hn85y1w72qx517bnrdvdliz3-source/hosts/antikythera': No such file or directory
make: *** [Makefile:36: remote-install] Error 1

I regenerated the flake.lock file, and committed all changes to git, so hosts/antikythera should be there, but the store path nixos-anywhere is accessing seems to be some old copy of the config. Updating the config and re-committing to git does nothing - always tries to get the config from this old store path.

Does nixos-anywhere use some sort of caching that needs to be cleared after each change to config?

UPDATE: This error is from another flake that is included by the base flake. Please disregard.