2019-11-02 14:38:29 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2018-12-04 19:00:18 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
{
|
2020-04-02 00:16:24 +00:00
|
|
|
meta = {
|
|
|
|
maintainers = teams.freedesktop.members;
|
|
|
|
};
|
|
|
|
|
2018-12-04 19:00:18 +00:00
|
|
|
options = {
|
|
|
|
xdg.sounds.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
2022-07-19 13:05:45 +00:00
|
|
|
description = lib.mdDoc ''
|
2018-12-04 19:00:18 +00:00
|
|
|
Whether to install files to support the
|
2022-07-19 13:05:45 +00:00
|
|
|
[XDG Sound Theme specification](https://www.freedesktop.org/wiki/Specifications/sound-theme-spec/).
|
2018-12-04 19:00:18 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.xdg.sounds.enable {
|
2019-11-02 14:38:29 +00:00
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.sound-theme-freedesktop
|
|
|
|
];
|
|
|
|
|
2018-12-04 19:00:18 +00:00
|
|
|
environment.pathsToLink = [
|
|
|
|
"/share/sounds"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|