nixos/wrappers: make (u)mount have the +s bit.
See https://discourse.nixos.org/t/how-to-make-a-derivations-executables-have-the-s-permission/8555 and: https://www.linuxquestions.org/questions/slackware-14/must-be-superuser-to-use-mount-fstab-is-correct-however-144932/
This commit is contained in:
parent
7acb961c67
commit
a854b77b08
|
@ -160,8 +160,11 @@ in
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
security.wrappers = {
|
security.wrappers = {
|
||||||
|
# These are mount related wrappers that require the +s permission.
|
||||||
fusermount.source = "${pkgs.fuse}/bin/fusermount";
|
fusermount.source = "${pkgs.fuse}/bin/fusermount";
|
||||||
fusermount3.source = "${pkgs.fuse3}/bin/fusermount3";
|
fusermount3.source = "${pkgs.fuse3}/bin/fusermount3";
|
||||||
|
mount.source = "${lib.getBin pkgs.utillinux}/bin/mount";
|
||||||
|
umount.source = "${lib.getBin pkgs.utillinux}/bin/umount";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.specialFileSystems.${parentWrapperDir} = {
|
boot.specialFileSystems.${parentWrapperDir} = {
|
||||||
|
|
Loading…
Reference in a new issue