1
1
Fork 0
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:
Ben Radford 2023-05-22 11:38:37 +01:00
parent 0c36fe6c8c
commit 7251800086
No known key found for this signature in database
GPG key ID: 9DF5D4640AB888D5
3 changed files with 22 additions and 1 deletions

View file

@ -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) {