From e261ccaf3755d26f0af318e1b5775da0f7bee94f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 19 May 2018 17:06:40 +0200 Subject: Enable zeroconf name resolution Required nscd, which slows down the boot process, so make that a delayed-start service --- modules/services/zeroconf.nix | 2 +- modules/user-interface.nix | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/services/zeroconf.nix b/modules/services/zeroconf.nix index 8eb01fb..0b428c5 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 348abd7..b0d4d9d 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; -- cgit 1.4.1