mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +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 {
|
||||
type = types.path;
|
||||
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