From f0a1e5e356116dfaa206215fadc586d33b54c6a8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 24 Jan 2013 15:40:56 +0100 Subject: [PATCH] Use systemd.targets to define ip-up --- modules/config/networking.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/config/networking.nix b/modules/config/networking.nix index 6908996db6c..9e55549ea2e 100644 --- a/modules/config/networking.nix +++ b/modules/config/networking.nix @@ -87,9 +87,8 @@ in } ]; - systemd.units."ip-up.target".text = - '' - [Unit] - Description=Services Requiring IP Connectivity - ''; + # The ‘ip-up’ target is started when we have IP connectivity. So + # services that depend on IP connectivity (like ntpd) should be + # pulled in by this target. + systemd.targets.ip-up.description = "Services Requiring IP Connectivity"; }