docker-cli: allow absolute paths for configDir

This commit is contained in:
Utkarsh Gupta 2026-02-18 13:42:06 +00:00 committed by Austin Horstman
parent 3233912054
commit 6f35059f9a

View file

@ -26,10 +26,10 @@ in
configDir = mkOption {
type = lib.types.str;
apply = p: lib.removePrefix "${config.home.homeDirectory}/" p;
default = ".docker";
description = ''
Folder relative to the user's home directory where the Docker CLI settings should be stored.
'';
example = lib.literalExpression "\${config.xdg.configHome}/docker";
description = "Directory to store configuration and state. This also sets $DOCKER_CONFIG.";
};
contexts = mkOption {