mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
23 lines
468 B
Nix
23 lines
468 B
Nix
|
{ 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"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
}
|