nixos: add XDG sounds module

wip/yesman
Michael Peyton Jones 6 years ago committed by Jan Tojnar
parent 758f271fba
commit f64bc036a5
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
  1. 22
      nixos/modules/config/xdg/sounds.nix
  2. 1
      nixos/modules/module-list.nix

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

@ -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

Loading…
Cancel
Save