system.switch.enable

NixOS option

Whether to include the capability to switch configurations. Disabling this makes the system unable to be reconfigured via nixos-rebuild. This is good for image based appliances where updates are handled outside the image. Reducing features makes the image lighter and slightly more secure.

type: boolean
Default
true
declared in: nixos/modules/system/activation/switchable-system.nixView source on NixOS/nixpkgs →