Skip to content

Commit e0b6c5b

Browse files
fixup
1 parent 742c4a9 commit e0b6c5b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

flake.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,16 @@
3737
paths = with pkgs; [
3838
mount
3939
davfs2
40-
fakeNss # https://nixos.org/manual/nixpkgs/stable/#ssec-pkgs-dockerTools-shadowSetup
4140
];
4241
};
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;
4350
config.Entrypoint = ["${webdavplugin}/bin/webdav"];
4451
};
4552
};

0 commit comments

Comments
 (0)