mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
nixos/containers: add wants and after dependency for network interfaces (#153234)
Co-authored-by: Franz Pletz <fpletz@fnordicwalking.de>
This commit is contained in:
parent
949797e26e
commit
c11439943d
1 changed files with 2 additions and 2 deletions
|
@ -842,8 +842,8 @@ in
|
||||||
optionalAttrs containerConfig.autoStart
|
optionalAttrs containerConfig.autoStart
|
||||||
{
|
{
|
||||||
wantedBy = [ "machines.target" ];
|
wantedBy = [ "machines.target" ];
|
||||||
wants = [ "network.target" ];
|
wants = [ "network.target" ] ++ (map (i: "sys-subsystem-net-devices-${i}.device") cfg.interfaces);
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ] ++ (map (i: "sys-subsystem-net-devices-${i}.device") cfg.interfaces);
|
||||||
restartTriggers = [
|
restartTriggers = [
|
||||||
containerConfig.path
|
containerConfig.path
|
||||||
config.environment.etc."${configurationDirectoryName}/${name}.conf".source
|
config.environment.etc."${configurationDirectoryName}/${name}.conf".source
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue