diff --git a/modules/misc/xdg.nix b/modules/misc/xdg.nix
index 941d51ed8..8dcf1fba4 100644
--- a/modules/misc/xdg.nix
+++ b/modules/misc/xdg.nix
@@ -6,14 +6,14 @@ let
cfg = config.xdg;
- fileType = basePath: (types.loaOf (types.submodule (
+ fileType = basePathDesc: basePath: (types.loaOf (types.submodule (
{ name, config, ... }: {
options = {
target = mkOption {
type = types.str;
- apply = p: "${cfg.configHome}/${p}";
+ apply = p: "${basePath}/${p}";
description = ''
- Path to target file relative to ${basePath}.
+ Path to target file relative to ${basePathDesc}.
'';
};
@@ -81,7 +81,7 @@ in
};
configFile = mkOption {
- type = fileType "xdg.configHome";
+ type = fileType "xdg.configHome" cfg.configHome;
default = {};
description = ''
Attribute set of files to link into the user's XDG