mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
xdg: add option 'xdg.dataFile'
This allows creating files within the user's XDG data directory.
This commit is contained in:
parent
f52ec0df7c
commit
a977c79f9f
1 changed files with 10 additions and 1 deletions
|
@ -52,6 +52,15 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dataFile = mkOption {
|
||||||
|
type = fileType "<varname>xdg.dataHome</varname>" cfg.dataHome;
|
||||||
|
default = {};
|
||||||
|
description = ''
|
||||||
|
Attribute set of files to link into the user's XDG
|
||||||
|
data home.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
dataHome = mkOption {
|
dataHome = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
defaultText = "~/.local/share";
|
defaultText = "~/.local/share";
|
||||||
|
@ -81,7 +90,7 @@ in
|
||||||
})
|
})
|
||||||
|
|
||||||
{
|
{
|
||||||
home.file = cfg.configFile;
|
home.file = mkMerge [ cfg.configFile cfg.dataFile ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue