1
0
Fork 0
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:
Robert Helgesson 2017-11-11 00:30:53 +01:00
parent f52ec0df7c
commit a977c79f9f
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -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 ];
}
];
}