Merge: Fix: Correct podman systemd service name (#425170)

This commit is contained in:
Maximilian Bosch
2025-08-11 18:39:10 +02:00
committed by GitHub
2 changed files with 16 additions and 10 deletions

View File

@@ -185,11 +185,9 @@ let
Refer to the
[Docker engine documentation](https://docs.docker.com/engine/network/#published-ports) for full details.
'';
example = literalExpression ''
[
"127.0.0.1:8080:9000"
]
'';
example = [
"127.0.0.1:8080:9000"
];
};
user = mkOption {
@@ -387,7 +385,9 @@ let
mkService =
name: container:
let
dependsOn = map (x: "${cfg.backend}-${x}.service") container.dependsOn;
dependsOn = lib.attrsets.mapAttrsToList (k: v: "${v.serviceName}.service") (
lib.attrsets.getAttrs container.dependsOn cfg.containers
);
escapedName = escapeShellArg name;
preStartScript = pkgs.writeShellApplication {
name = "pre-start";
@@ -539,7 +539,7 @@ let
Restart = "always";
}
// optionalAttrs (cfg.backend == "podman") {
Environment = "PODMAN_SYSTEMD_UNIT=podman-${name}.service";
Environment = "PODMAN_SYSTEMD_UNIT=%n";
Type = "notify";
NotifyAccess = "all";
Delegate = mkIf (container.podman.sdnotify == "healthy") true;