-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add allowedSymlinks option #117
base: master
Are you sure you want to change the base?
Conversation
074a188
to
81bb92f
Compare
Test case added, and ready to go! |
e9964e8
to
81bb92f
Compare
81bb92f
to
e8406c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpick.
Fix that and rebase on master to remove the cherry pick and this should be good to merge.
@@ -449,6 +457,24 @@ in | |||
''; | |||
}; | |||
|
|||
allowedSymlinks = mkOption { | |||
default = ["/nix/store"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than setting this as a default, it should instead be added as part of config
. Otherwise, it leads to the unintuitive behavior of adding to allowedSymlinks
removing /nix/store
from the list. Removing /nix/store
should require lib.mkForce
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're totally right. I'll get that fixed
Fixes #92.
txt format cherry picked from #103 (thanks @arminius-smh!)