nixos/docker-registry: allow nested config options
for example: services.dockerRegistry = { enable = true; extraConfig = { http = { host = "https://${config.networking.hostName}:5000"; tls = { certificate = "${registry-tls}/snakeoil.pem"; key = "${registry-tls}/snakeoil.key"; }; }; }; };
This commit is contained in:
parent
1d1a4bfb39
commit
5f1ad29340
@ -42,7 +42,7 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
configFile = pkgs.writeText "docker-registry-config.yml" (builtins.toJSON (registryConfig // cfg.extraConfig));
|
||||
configFile = pkgs.writeText "docker-registry-config.yml" (builtins.toJSON (recursiveUpdate registryConfig cfg.extraConfig));
|
||||
|
||||
in {
|
||||
options.services.dockerRegistry = {
|
||||
@ -91,7 +91,7 @@ in {
|
||||
Docker extra registry configuration via environment variables.
|
||||
'';
|
||||
default = {};
|
||||
type = types.attrsOf types.str;
|
||||
type = types.attrs;
|
||||
};
|
||||
|
||||
enableGarbageCollect = mkEnableOption "garbage collect";
|
||||
|
Loading…
Reference in New Issue
Block a user