Merge pull request #3977 from manveru/diod

diod: fix service

Changed files
+4 -3
nixos
modules
services
network-filesystems
+4 -3
nixos/modules/services/network-filesystems/diod.nix
···
listen = mkOption {
type = types.listOf types.str;
-
default = [ ];
+
default = [ "0.0.0.0:564" ];
description = ''
[ "IP:PORT" [,"IP:PORT",...] ]
List the interfaces and ports that diod should listen on.
···
};
exports = mkOption {
-
type = types.listOf types.path;
+
type = types.listOf types.str;
default = [];
description = ''
List the file systems that clients will be allowed to mount. All paths should
···
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig = {
-
ExecStart = "${pkgs.diod}/sbin/diod -c ${diodConfig}";
+
ExecStart = "${pkgs.diod}/sbin/diod -f -c ${diodConfig}";
+
Capabilities = "cap_net_bind_service+=ep";
};
};
};