nixos containers: restart containers with autoStart = true when their conf changes
This commit is contained in:
parent
e7872cda4b
commit
b2fbbad107
@ -710,8 +710,11 @@ in
|
||||
wantedBy = [ "machines.target" ];
|
||||
wants = [ "network.target" ];
|
||||
after = [ "network.target" ];
|
||||
restartTriggers = [ containerConfig.path ];
|
||||
reloadIfChanged = true;
|
||||
restartTriggers = [
|
||||
containerConfig.path
|
||||
config.environment.etc."containers/${name}.conf".source
|
||||
];
|
||||
restartIfChanged = true;
|
||||
}
|
||||
else {})
|
||||
)) config.containers)
|
||||
|
Loading…
Reference in New Issue
Block a user