From f173d13dd7df25a90c008d3ffe08555d7657259f Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 4 Apr 2021 22:57:44 +0200 Subject: [PATCH] lxc-containers: wiggle dependency on network.target --- nix/nixos-module/server/lxc-containers.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/nixos-module/server/lxc-containers.nix b/nix/nixos-module/server/lxc-containers.nix index 1451d09..385c609 100644 --- a/nix/nixos-module/server/lxc-containers.nix +++ b/nix/nixos-module/server/lxc-containers.nix @@ -115,7 +115,8 @@ in systemd.services."lxc-rootfs@" = { description = "rootfs for '%i'"; - wants = [ "nix-daemon.service" ]; + requires = [ "nix-daemon.service" ]; + after = [ "network.target" ]; path = [ config.nix.package pkgs.util-linux pkgs.git ]; scriptArgs = "%i"; script = '' @@ -135,9 +136,8 @@ in systemd.services."lxc@" = { description = "LXC container '%i'"; - wants = [ "systemd-networkd.service" ]; requires = [ "lxc-rootfs@%i.service" ]; - after = [ "lxc-rootfs@%i.service" ]; + after = [ "network.target" ]; serviceConfig = { Type = "simple"; ExecStart =