system.tools.nixos-rebuild.enableRun0Elevation
NixOS option
Whether to enable support for being targeted by nixos-rebuild --elevate=run0 --ask-elevate-password. This enables polkit and adds polkit-stdin-agent to environment.systemPackages so that a deploying host can find a target-architecture agent at <toplevel>/sw/bin/polkit-stdin-agent after copying the closure (which is required for cross-architecture deploys and mismatched nixpkgs revisions to work). .
type: booleanDefault
false
Example
declared in: nixos/modules/installer/tools/tools.nixView source on NixOS/nixpkgs →true