about summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2018-01-09 17:19:13 +0100
committerVladimír Čunát <vcunat@gmail.com>2018-01-09 17:25:18 +0100
commit4bc4c0883885f170d08ad47a8019bde7209d10f4 (patch)
tree85804551bdab10213abce9c2a6bba277af74903f /nixos/modules/services/networking
parent3ab85ed1aca250501bcd098f5c304e3ddde96e79 (diff)
downloadnixlib-4bc4c0883885f170d08ad47a8019bde7209d10f4.tar
nixlib-4bc4c0883885f170d08ad47a8019bde7209d10f4.tar.gz
nixlib-4bc4c0883885f170d08ad47a8019bde7209d10f4.tar.bz2
nixlib-4bc4c0883885f170d08ad47a8019bde7209d10f4.tar.lz
nixlib-4bc4c0883885f170d08ad47a8019bde7209d10f4.tar.xz
nixlib-4bc4c0883885f170d08ad47a8019bde7209d10f4.tar.zst
nixlib-4bc4c0883885f170d08ad47a8019bde7209d10f4.zip
nixos/kresd: service nitpicks
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/kresd.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/kresd.nix b/nixos/modules/services/networking/kresd.nix
index 7e36c69cc4e3..011a9b2f58ea 100644
--- a/nixos/modules/services/networking/kresd.nix
+++ b/nixos/modules/services/networking/kresd.nix
@@ -72,6 +72,7 @@ in
         (iface: if elem ":" (stringToCharacters iface) then "[${iface}]:53" else "${iface}:53")
         cfg.interfaces;
       socketConfig.ListenDatagram = listenStreams;
+      socketConfig.FreeBind = true;
     };
 
     systemd.sockets.kresd-control = rec {
@@ -82,7 +83,7 @@ in
       socketConfig = {
         FileDescriptorName = "control";
         Service = "kresd.service";
-        SocketMode = "0660"; # only root user/group may connect
+        SocketMode = "0660"; # only root user/group may connect and control kresd
       };
     };
 
@@ -95,6 +96,7 @@ in
         User = "kresd";
         Type = "notify";
         WorkingDirectory = cfg.cacheDir;
+        Restart = "on-failure";
       };
 
       script = ''