Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Misterio77
Copy link
Contributor

@Misterio77 Misterio77 commented Dec 26, 2024

Fixes #92.

txt format cherry picked from #103 (thanks @arminius-smh!)

@Misterio77 Misterio77 marked this pull request as ready for review December 27, 2024 04:35
@Misterio77
Copy link
Contributor Author

Test case added, and ready to go!

@Misterio77 Misterio77 force-pushed the push-plwvsqorwkzt branch 2 times, most recently from e9964e8 to 81bb92f Compare December 28, 2024 00:48
Copy link
Owner

@Infinidoge Infinidoge left a 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"];
Copy link
Owner

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.

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate allowed_symlinks.txt when symlinks are used in module
3 participants