Skip to content

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

@ttimasdf

Description

@ttimasdf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions