diff --git a/modules/programs/docker-cli.nix b/modules/programs/docker-cli.nix index c4abe7db..57821436 100644 --- a/modules/programs/docker-cli.nix +++ b/modules/programs/docker-cli.nix @@ -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 {