3
0
Fork 0
forked from mirrors/nixpkgs

nixos: add XDG sounds module

This commit is contained in:
Michael Peyton Jones 2018-12-04 19:00:18 +00:00 committed by Jan Tojnar
parent 758f271fba
commit f64bc036a5
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{ config, lib, ... }:
with lib;
{
options = {
xdg.sounds.enable = mkOption {
type = types.bool;
default = true;
description = ''
Whether to install files to support the
<link xlink:href="https://www.freedesktop.org/wiki/Specifications/sound-theme-spec/">XDG Sound Theme specification</link>.
'';
};
};
config = mkIf config.xdg.sounds.enable {
environment.pathsToLink = [
"/share/sounds"
];
};
}

View file

@ -12,6 +12,7 @@
./config/xdg/menus.nix
./config/xdg/mime.nix
./config/appstream.nix
./config/xdg/sounds.nix
./config/gtk/gtk-icon-cache.nix
./config/gnu.nix
./config/i18n.nix