Enable zeroconf name resolution Required nscd, which slows down the boot process, so make that a delayed-start service
Alan Pearce alan@alanpearce.eu
Sat, 19 May 2018 17:06:40 +0200
2 files changed, 10 insertions(+), 2 deletions(-)
M modules/services/zeroconf.nix → modules/services/zeroconf.nix
@@ -2,7 +2,7 @@ { config, pkgs, lib, ... }: { services.avahi = { enable = true; - nssmdns = false; + nssmdns = true; ipv6 = true; }; systemd.services.avahi-daemon.wantedBy = lib.mkForce [];
M modules/user-interface.nix → modules/user-interface.nix
@@ -56,7 +56,15 @@ services.devmon.enable = true; 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;