mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 17:29:36 +01:00
Put read-only setting behind an experimental flag.
This commit is contained in:
parent
0c36fe6c8c
commit
7251800086
3 changed files with 22 additions and 1 deletions
|
|
@ -202,6 +202,10 @@ LocalStore::LocalStore(const Params & params)
|
|||
createSymlink(profilesDir, gcRootsDir + "/profiles");
|
||||
}
|
||||
|
||||
if (readOnly) {
|
||||
experimentalFeatureSettings.require(Xp::ReadOnlyLocalStore);
|
||||
}
|
||||
|
||||
for (auto & perUserDir : {profilesDir + "/per-user", gcRootsDir + "/per-user"}) {
|
||||
createDirs(perUserDir);
|
||||
if (!readOnly) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue