Merge pull request #75487 from michaeladler/nixos-unstable
nixos/systemd: use global proxy config in systemd-importd
This commit is contained in:
commit
274a62a2be
@ -405,6 +405,8 @@ let
|
|||||||
"hibernate" "hybrid-sleep" "suspend-then-hibernate" "lock"
|
"hibernate" "hybrid-sleep" "suspend-then-hibernate" "lock"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
proxy_env = config.networking.proxy.envVars;
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -1056,6 +1058,7 @@ in
|
|||||||
systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
|
systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
|
||||||
systemd.targets.network-online.wantedBy = [ "multi-user.target" ];
|
systemd.targets.network-online.wantedBy = [ "multi-user.target" ];
|
||||||
systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.mount" ];
|
systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.mount" ];
|
||||||
|
systemd.services.systemd-importd.environment = proxy_env;
|
||||||
|
|
||||||
# Don't bother with certain units in containers.
|
# Don't bother with certain units in containers.
|
||||||
systemd.services.systemd-remount-fs.unitConfig.ConditionVirtualization = "!container";
|
systemd.services.systemd-remount-fs.unitConfig.ConditionVirtualization = "!container";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user