diff options
author | Alan Pearce | 2018-05-19 17:06:40 +0200 |
---|---|---|
committer | Alan Pearce | 2018-05-19 17:06:40 +0200 |
commit | e261ccaf3755d26f0af318e1b5775da0f7bee94f (patch) | |
tree | 96971b3fdb179456aa5b5194a01d270af1d1f401 | |
parent | 106542e052137ba632402276e1621bc16a3ab907 (diff) | |
download | nixos-configuration-e261ccaf3755d26f0af318e1b5775da0f7bee94f.tar.lz nixos-configuration-e261ccaf3755d26f0af318e1b5775da0f7bee94f.tar.zst nixos-configuration-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.nix | 2 | ||||
-rw-r--r-- | 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; |