xdg: add modules for supporting various XDG specs

This commit is contained in:
Michael Peyton Jones 2018-08-15 09:55:35 +01:00
commit 13e2e19158
No known key found for this signature in database
GPG key ID: 86A43C24A728F66D
13 changed files with 133 additions and 29 deletions

View file

@ -0,0 +1,27 @@
{ config, lib, ... }:
with lib;
{
options = {
xdg.icons.enable = mkOption {
type = types.bool;
default = true;
description = ''
Whether to install files to support the
<link xlink:href="https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html">XDG Icon Theme specification</link>.
'';
};
};
config = mkIf config.xdg.icons.enable {
environment.pathsToLink = [
"/share/icons"
"/share/pixmaps"
];
environment.profileRelativeEnvVars = {
XCURSOR_PATH = [ "/share/icons" ];
};
};
}