{ lib, pkgs, config, ... }: let inherit (lib) mkIf mkEnableOption mkOption ; cfg = config.programs.docker-cli; jsonFormat = pkgs.formats.json { }; in { meta.maintainers = [ lib.maintainers.friedrichaltheide ]; options.programs.docker-cli = { enable = mkEnableOption "management of docker client config"; configPath = mkOption { type = lib.types.str; default = ".docker/config.json"; description = '' Relative path to the user's home directory where the Docker CLI settings should be stored. ''; }; settings = mkOption { type = jsonFormat.type; default = { }; example = '' { "proxies" = { "default" = { "httpProxy" = "http://proxy.example.org:3128"; "httpsProxy" = "http://proxy.example.org:3128"; "noProxy" = "localhost"; }; }; ''; description = '' Available configuration options for the Docker CLI see: