Merge pull request #290449 from Kiskae/patch-2

nixos/podman: pass proxy variables to podman API
This commit is contained in:
Sandro 2024-03-01 00:37:27 +01:00 committed by GitHub
commit b8ec4c1475
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -216,9 +216,11 @@ in
requires = [ "podman.service" ]; requires = [ "podman.service" ];
}; };
systemd.services.podman.environment = config.networking.proxy.envVars;
systemd.sockets.podman.wantedBy = [ "sockets.target" ]; systemd.sockets.podman.wantedBy = [ "sockets.target" ];
systemd.sockets.podman.socketConfig.SocketGroup = "podman"; systemd.sockets.podman.socketConfig.SocketGroup = "podman";
systemd.user.services.podman.environment = config.networking.proxy.envVars;
systemd.user.sockets.podman.wantedBy = [ "sockets.target" ]; systemd.user.sockets.podman.wantedBy = [ "sockets.target" ];
systemd.timers.podman-prune.timerConfig = lib.mkIf cfg.autoPrune.enable { systemd.timers.podman-prune.timerConfig = lib.mkIf cfg.autoPrune.enable {