1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 21:13:33 +02: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 ];
}
];
}