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