Compare commits
2 Commits
a34135d5a7
...
be9cb5ccc0
| Author | SHA1 | Date | |
|---|---|---|---|
| be9cb5ccc0 | |||
| c357d13b21 |
@@ -37,7 +37,9 @@ let
|
||||
environment = {
|
||||
TZ = config.time.timeZone;
|
||||
} // extraEnv;
|
||||
|
||||
autoRemoveOnStop = false;
|
||||
autoStart = true;
|
||||
pull = "newer";
|
||||
labels = (if subdomain!=null then ({
|
||||
"traefik.enable" = "true";
|
||||
"traefik.http.routers.${routerName}.entrypoints" = "web-secure";
|
||||
|
||||
@@ -63,6 +63,12 @@ in {
|
||||
startAt = "weekly";
|
||||
};
|
||||
}
|
||||
// builtins.listToAttrs (
|
||||
map (name: {
|
||||
name = "podman-${name}";
|
||||
value.serviceConfig.Type = lib.mkForce "exec";
|
||||
}) (builtins.attrNames config.virtualisation.oci-containers.containers)
|
||||
)
|
||||
// mkNamedUnits (e: {
|
||||
name = "${e.name}-vm";
|
||||
value = {
|
||||
@@ -90,7 +96,7 @@ in {
|
||||
value = {
|
||||
description = "Run ${e.name} setup";
|
||||
after = [ "podman-${e.name}-${e.trigger}.service" ];
|
||||
wants = [ "podman-${e.name}-${e.trigger}.service" ];
|
||||
# wants = [ "podman-${e.name}-${e.trigger}.service" ];
|
||||
partOf = [ "podman-${e.name}-${e.trigger}.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
restartTriggers = [ e.script ];
|
||||
@@ -98,7 +104,8 @@ in {
|
||||
Type = "simple";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "15s";
|
||||
TimeoutStartSec = "360s";
|
||||
# TimeoutStartSec = "360s";
|
||||
TimeoutStartSec = "30s";
|
||||
EnvironmentFile = e.envFile;
|
||||
ExecStart = e.script;
|
||||
RemainAfterExit = true;
|
||||
|
||||
Reference in New Issue
Block a user