mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #41478 from bluescreen303/docker-registry
Small improvements to the docker registry module
This commit is contained in:
commit
31021701ac
1 changed files with 3 additions and 2 deletions
|
@ -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";
|
||||
|
@ -120,6 +120,7 @@ in {
|
|||
serviceConfig = {
|
||||
User = "docker-registry";
|
||||
WorkingDirectory = cfg.storagePath;
|
||||
AmbientCapabilities = mkIf (cfg.port < 1024) "cap_net_bind_service";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue