diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-09-25 16:33:21 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-09-25 16:33:21 -0400 |
commit | a139fa14b1764862f5b47eebb0a355da2c0300a1 (patch) | |
tree | 9ff553e3ed1e0cd4ec85167fae6f65b357a0b564 /modules/services/misc/nix-daemon.nix | |
parent | fcebb3f3cde263879d4ea99470ec637e84d4da82 (diff) | |
download | nixpkgs-a139fa14b1764862f5b47eebb0a355da2c0300a1.tar nixpkgs-a139fa14b1764862f5b47eebb0a355da2c0300a1.tar.gz nixpkgs-a139fa14b1764862f5b47eebb0a355da2c0300a1.tar.bz2 nixpkgs-a139fa14b1764862f5b47eebb0a355da2c0300a1.tar.lz nixpkgs-a139fa14b1764862f5b47eebb0a355da2c0300a1.tar.xz nixpkgs-a139fa14b1764862f5b47eebb0a355da2c0300a1.tar.zst nixpkgs-a139fa14b1764862f5b47eebb0a355da2c0300a1.zip |
Optionally make the Nix store read-only to enforce immutability
This will be the default once Nix 1.2 is released.
Diffstat (limited to 'modules/services/misc/nix-daemon.nix')
-rw-r--r-- | modules/services/misc/nix-daemon.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/services/misc/nix-daemon.nix b/modules/services/misc/nix-daemon.nix index cf2d0f52d86..7e52686f32f 100644 --- a/modules/services/misc/nix-daemon.nix +++ b/modules/services/misc/nix-daemon.nix @@ -183,6 +183,17 @@ in you should increase this value. ''; }; + + readOnlyStore = mkOption { + default = false; + description = '' + If set, NixOS will enforce the immutability of the Nix store + by making <filename>/nix/store</filename> a read-only bind + mount. Nix will automatically make the store writable when + needed. + ''; + }; + }; }; |