Unverified Commit c1143994 authored by Sohalt's avatar Sohalt Committed by GitHub
Browse files

nixos/containers: add wants and after dependency for network interfaces (#153234)

parent 949797e2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -842,8 +842,8 @@ in
            optionalAttrs containerConfig.autoStart
              {
                wantedBy = [ "machines.target" ];
                wants = [ "network.target" ];
                after = [ "network.target" ];
                wants = [ "network.target" ] ++ (map (i: "sys-subsystem-net-devices-${i}.device") cfg.interfaces);
                after = [ "network.target" ] ++ (map (i: "sys-subsystem-net-devices-${i}.device") cfg.interfaces);
                restartTriggers = [
                  containerConfig.path
                  config.environment.etc."${configurationDirectoryName}/${name}.conf".source