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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
591 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2018-12-04 19:00:18 +00:00
with lib;
{
meta = {
maintainers = teams.freedesktop.members;
};
2018-12-04 19:00:18 +00:00
options = {
xdg.sounds.enable = mkOption {
type = types.bool;
default = true;
description = ''
2018-12-04 19:00:18 +00:00
Whether to install files to support the
[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 {
environment.systemPackages = [
pkgs.sound-theme-freedesktop
];
2018-12-04 19:00:18 +00:00
environment.pathsToLink = [
"/share/sounds"
];
};
}