summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2018-05-19 17:06:40 +0200
committerAlan Pearce2018-05-19 17:06:40 +0200
commite261ccaf3755d26f0af318e1b5775da0f7bee94f (patch)
tree96971b3fdb179456aa5b5194a01d270af1d1f401
parent106542e052137ba632402276e1621bc16a3ab907 (diff)
downloadnixfiles-e261ccaf3755d26f0af318e1b5775da0f7bee94f.tar.lz
nixfiles-e261ccaf3755d26f0af318e1b5775da0f7bee94f.tar.zst
nixfiles-e261ccaf3755d26f0af318e1b5775da0f7bee94f.zip
Enable zeroconf name resolution
Required nscd, which slows down the boot process, so make that a
delayed-start service
-rw-r--r--modules/services/zeroconf.nix2
-rw-r--r--modules/user-interface.nix10
2 files changed, 10 insertions, 2 deletions
diff --git a/modules/services/zeroconf.nix b/modules/services/zeroconf.nix
index 8eb01fbe..0b428c54 100644
--- a/modules/services/zeroconf.nix
+++ b/modules/services/zeroconf.nix
@@ -2,7 +2,7 @@
 
 { services.avahi = {
     enable = true;
-    nssmdns = false;
+    nssmdns = true;
     ipv6 = true;
   };
   systemd.services.avahi-daemon.wantedBy = lib.mkForce [];
diff --git a/modules/user-interface.nix b/modules/user-interface.nix
index 348abd7d..b0d4d9d2 100644
--- a/modules/user-interface.nix
+++ b/modules/user-interface.nix
@@ -56,7 +56,15 @@ in
 
   environment.sessionVariables.TERMINAL = "mlterm";
 
-  services.nscd.enable = false;
+  services.nscd.enable = true;
+  systemd.services.nscd.wantedBy = lib.mkForce [];
+  systemd.timers.nscd = {
+    description = "Delayed startup of nscd";
+    wantedBy = [ "timers.target" ];
+    timerConfig = {
+      OnActiveSec = "1 min";
+    };
+  };
 
   services.emacs = {
     enable = true;