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
601 B
Nix
Raw Normal View History

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