nixos containers: restart containers with autoStart = true when their conf changes

This commit is contained in:
Graham Christensen 2019-06-06 10:19:07 -04:00
parent e7872cda4b
commit b2fbbad107
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

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