2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
meta = {
|
|
|
|
maintainers = teams.freedesktop.members;
|
|
|
|
};
|
|
|
|
|
|
|
|
options = {
|
|
|
|
xdg.sounds.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
2022-08-12 12:06:08 +00:00
|
|
|
description = lib.mdDoc ''
|
2020-04-24 23:36:52 +00:00
|
|
|
Whether to install files to support the
|
2022-08-12 12:06:08 +00:00
|
|
|
[XDG Sound Theme specification](https://www.freedesktop.org/wiki/Specifications/sound-theme-spec/).
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.xdg.sounds.enable {
|
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.sound-theme-freedesktop
|
|
|
|
];
|
|
|
|
|
|
|
|
environment.pathsToLink = [
|
|
|
|
"/share/sounds"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|