We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 742c4a9 commit e0b6c5bCopy full SHA for e0b6c5b
flake.nix
@@ -37,9 +37,16 @@
37
paths = with pkgs; [
38
mount
39
davfs2
40
- fakeNss # https://nixos.org/manual/nixpkgs/stable/#ssec-pkgs-dockerTools-shadowSetup
41
];
42
};
+ # https://nixos.org/manual/nixpkgs/stable/#ssec-pkgs-dockerTools-shadowSetup
43
+ fakeRootCommands = ''
44
+ ${pkgs.dockerTools.shadowSetup}
45
+ groupadd -r davfs2
46
+ useradd -r -g davfs2 davfs2
47
+ ln -s /proc/mounts /etc/mtab # davfs2 needs this
48
+ '';
49
+ enableFakechroot = true;
50
config.Entrypoint = ["${webdavplugin}/bin/webdav"];
51
52
0 commit comments