fix dufs credential

This commit is contained in:
Yan Lin 2025-11-19 11:24:00 +01:00
parent 113403b9cc
commit 8b7d424094

View file

@ -36,7 +36,7 @@ in
serviceConfig = {
Type = "simple";
User = "root"; # Run as root to access any system path
ExecStart = "${pkgs.dufs}/bin/dufs ${cfg.sharedPath} --port ${toString cfg.port} --bind 0.0.0.0 --auth $(cat ${authFile})@/:rw";
ExecStart = ''/bin/sh -c "${pkgs.dufs}/bin/dufs ${cfg.sharedPath} --port ${toString cfg.port} --bind 0.0.0.0 --auth $(cat ${authFile})@/:rw"'';
Restart = "on-failure";
RestartSec = "10s";
};