1{
2 config,
3 lib,
4 pkgs,
5 ...
6}:
7{
8 meta = {
9 maintainers = lib.teams.freedesktop.members;
10 };
11
12 options = {
13 xdg.sounds.enable = lib.mkOption {
14 type = lib.types.bool;
15 default = true;
16 description = ''
17 Whether to install files to support the
18 [XDG Sound Theme specification](https://www.freedesktop.org/wiki/Specifications/sound-theme-spec/).
19 '';
20 };
21 };
22
23 config = lib.mkIf config.xdg.sounds.enable {
24 environment.systemPackages = [
25 pkgs.sound-theme-freedesktop
26 ];
27
28 environment.pathsToLink = [
29 "/share/sounds"
30 ];
31 };
32
33}