nixos-flake icon indicating copy to clipboard operation
nixos-flake copied to clipboard

missing `flake.inputs.rev` when running nixos rebuild through activate script.

Open ttimasdf opened this issue 5 months ago • 1 comments

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 avatar Sep 17 '25 05:09 ttimasdf

@ttimasdf

  1. Could you paste the actual error? When running what command? On what repo? Having reliable repro would be nice.
  2. What is the output of nix run nixpkgs#omnix health?

srid avatar Sep 17 '25 13:09 srid