aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/nixos/modules/config/xdg/sounds.nix
blob: 148240d631cf266696522da2a1fae60f38c84b10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"
    ];
  };

}