nixpkgs/nixos/modules/config/xdg/sounds.nix

27 lines
552 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2018-12-04 20:00:18 +01:00
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.systemPackages = [
pkgs.sound-theme-freedesktop
];
2018-12-04 20:00:18 +01:00
environment.pathsToLink = [
"/share/sounds"
];
};
}