diff options
Diffstat (limited to 'nixpkgs/nixos/modules/config/xdg/sounds.nix')
-rw-r--r-- | nixpkgs/nixos/modules/config/xdg/sounds.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/nixos/modules/config/xdg/sounds.nix b/nixpkgs/nixos/modules/config/xdg/sounds.nix new file mode 100644 index 000000000000..713d68131fc0 --- /dev/null +++ b/nixpkgs/nixos/modules/config/xdg/sounds.nix @@ -0,0 +1,30 @@ +{ config, lib, pkgs, ... }: + +with lib; +{ + meta = { + maintainers = teams.freedesktop.members; + }; + + options = { + xdg.sounds.enable = mkOption { + type = types.bool; + default = true; + description = lib.mdDoc '' + Whether to install files to support the + [XDG Sound Theme specification](https://www.freedesktop.org/wiki/Specifications/sound-theme-spec/). + ''; + }; + }; + + config = mkIf config.xdg.sounds.enable { + environment.systemPackages = [ + pkgs.sound-theme-freedesktop + ]; + + environment.pathsToLink = [ + "/share/sounds" + ]; + }; + +} |