lxc-containers: wiggle dependency on network.target

This commit is contained in:
Astro 2021-04-04 22:57:44 +02:00
parent 54a061f565
commit f173d13dd7
1 changed files with 3 additions and 3 deletions

View File

@ -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 =