summary refs log tree commit diff
path: root/nixos/modules/services/network-filesystems
diff options
context:
space:
mode:
authorMichael Fellinger <m.fellinger@gmail.com>2014-09-04 18:32:55 +0200
committerMichael Fellinger <m.fellinger@gmail.com>2014-09-05 14:39:55 +0200
commit00887dc3f8a406b0aefdea28099e7f55a99c608a (patch)
tree99a962e27ccb045ac6cf399bcfc9358a449c757a /nixos/modules/services/network-filesystems
parente805c78ed3a19c362305a2c7633e0d718c4e2665 (diff)
downloadnixlib-00887dc3f8a406b0aefdea28099e7f55a99c608a.tar
nixlib-00887dc3f8a406b0aefdea28099e7f55a99c608a.tar.gz
nixlib-00887dc3f8a406b0aefdea28099e7f55a99c608a.tar.bz2
nixlib-00887dc3f8a406b0aefdea28099e7f55a99c608a.tar.lz
nixlib-00887dc3f8a406b0aefdea28099e7f55a99c608a.tar.xz
nixlib-00887dc3f8a406b0aefdea28099e7f55a99c608a.tar.zst
nixlib-00887dc3f8a406b0aefdea28099e7f55a99c608a.zip
diod: fix service
Diffstat (limited to 'nixos/modules/services/network-filesystems')
-rw-r--r--nixos/modules/services/network-filesystems/diod.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/services/network-filesystems/diod.nix b/nixos/modules/services/network-filesystems/diod.nix
index 1ab5f52d438c..7de7acaa4a08 100644
--- a/nixos/modules/services/network-filesystems/diod.nix
+++ b/nixos/modules/services/network-filesystems/diod.nix
@@ -31,7 +31,7 @@ in
 
       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.
@@ -39,7 +39,7 @@ in
       };
 
       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
@@ -152,7 +152,8 @@ in
       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";
       };
     };
   };