nixos-flake
nixos-flake copied to clipboard
missing `flake.inputs.rev` when running nixos rebuild through activate script.
when running nixos rebuild by nix run (which from what I know, calls activate script under the hood), the current nixos repo is first built into nix store, then nixos-rebuild is called like nixos-rebuild switch --flake /nix/store/26q0j2a3f92vsjhi3bwad8gfsbwhll9f-nixos-unified-activate.
However, the source code inside nix store is no longer a git repo, that system.configurationRevision = self.rev no longer works, so in order to not break my config I have to manually run nixos-rebuild switch instead of nix run.
I'm not a nix expert so correct me if i'm wrong ;p
@ttimasdf
- Could you paste the actual error? When running what command? On what repo? Having reliable repro would be nice.
- What is the output of
nix run nixpkgs#omnix health?