boot.nixStoreMountOpts

NixOS option

Defines the mount options used on a bind mount for the /nix/store. This affects the whole system except the nix store daemon, which will undo the bind mount. ro enforces immutability of the Nix store. The store daemon should already not put device mappers or suid binaries in the store, meaning nosuid and nodev enforce what should already be the case.

type: list of non-empty string
Default
[
  "ro"
  "nodev"
  "nosuid"
]
declared in: nixos/modules/system/boot/stage-2.nixView source on NixOS/nixpkgs →