diff options
author | Alan Pearce | 2018-04-29 15:00:53 +0200 |
---|---|---|
committer | Alan Pearce | 2018-04-29 15:00:53 +0200 |
commit | 05571aa5ed5eb898be468bff237657914f7e9dcf (patch) | |
tree | b7f271af5d42dce8caec06a66eaafd9e1ef6411d /modules/services | |
parent | 68f44953449af2ad3565426e1716757fe7afc04b (diff) | |
download | nixos-configuration-05571aa5ed5eb898be468bff237657914f7e9dcf.tar.lz nixos-configuration-05571aa5ed5eb898be468bff237657914f7e9dcf.tar.zst nixos-configuration-05571aa5ed5eb898be468bff237657914f7e9dcf.zip |
Delay startup of non-essential services
Diffstat (limited to 'modules/services')
-rw-r--r-- | modules/services/zeroconf.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/services/zeroconf.nix b/modules/services/zeroconf.nix index aa4b47e..0b428c5 100644 --- a/modules/services/zeroconf.nix +++ b/modules/services/zeroconf.nix @@ -1,7 +1,16 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { services.avahi = { enable = true; nssmdns = true; + ipv6 = true; + }; + systemd.services.avahi-daemon.wantedBy = lib.mkForce []; + systemd.timers.avahi-daemon = { + description = "Delayed startup of Avahi"; + wantedBy = [ "timers.target" ]; + timerConfig = { + OnActiveSec = "1 min"; + }; }; } |