mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/docker: fix module, add simple test
This commit is contained in:
parent
77049af46f
commit
40d73c5eb7
3 changed files with 27 additions and 2 deletions
|
@ -7,8 +7,8 @@ with lib;
|
|||
let
|
||||
|
||||
cfg = config.virtualisation.docker;
|
||||
pro = config.nix.proxy;
|
||||
proxy_env = optionalAttrs (pro != "") { Environment = "\"http_proxy=${pro}\""; };
|
||||
pro = config.networking.proxy.default;
|
||||
proxy_env = optionalAttrs (pro != null) { Environment = "\"http_proxy=${pro}\""; };
|
||||
|
||||
in
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue