mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
31 lines
614 B
Nix
31 lines
614 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
{
|
|
meta = {
|
|
maintainers = teams.freedesktop.members;
|
|
};
|
|
|
|
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.systemPackages = [
|
|
pkgs.sound-theme-freedesktop
|
|
];
|
|
|
|
environment.pathsToLink = [
|
|
"/share/sounds"
|
|
];
|
|
};
|
|
|
|
}
|