mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
xdg: fix use of base path
This commit is contained in:
parent
1213578eb7
commit
82d6aa0c97
1 changed files with 4 additions and 4 deletions
|
@ -6,14 +6,14 @@ let
|
||||||
|
|
||||||
cfg = config.xdg;
|
cfg = config.xdg;
|
||||||
|
|
||||||
fileType = basePath: (types.loaOf (types.submodule (
|
fileType = basePathDesc: basePath: (types.loaOf (types.submodule (
|
||||||
{ name, config, ... }: {
|
{ name, config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
target = mkOption {
|
target = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
apply = p: "${cfg.configHome}/${p}";
|
apply = p: "${basePath}/${p}";
|
||||||
description = ''
|
description = ''
|
||||||
Path to target file relative to <varname>${basePath}</varname>.
|
Path to target file relative to <varname>${basePathDesc}</varname>.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
configFile = mkOption {
|
configFile = mkOption {
|
||||||
type = fileType "xdg.configHome";
|
type = fileType "xdg.configHome" cfg.configHome;
|
||||||
default = {};
|
default = {};
|
||||||
description = ''
|
description = ''
|
||||||
Attribute set of files to link into the user's XDG
|
Attribute set of files to link into the user's XDG
|
||||||
|
|
Loading…
Reference in a new issue