From f64bc036a55bb387b60c879bed89a54afd2c7a89 Mon Sep 17 00:00:00 2001 From: Michael Peyton Jones Date: Tue, 4 Dec 2018 19:00:18 +0000 Subject: [PATCH] nixos: add XDG sounds module --- nixos/modules/config/xdg/sounds.nix | 22 ++++++++++++++++++++++ nixos/modules/module-list.nix | 1 + 2 files changed, 23 insertions(+) create mode 100644 nixos/modules/config/xdg/sounds.nix diff --git a/nixos/modules/config/xdg/sounds.nix b/nixos/modules/config/xdg/sounds.nix new file mode 100644 index 000000000000..148240d631cf --- /dev/null +++ b/nixos/modules/config/xdg/sounds.nix @@ -0,0 +1,22 @@ +{ config, lib, ... }: + +with lib; +{ + options = { + xdg.sounds.enable = mkOption { + type = types.bool; + default = true; + description = '' + Whether to install files to support the + XDG Sound Theme specification. + ''; + }; + }; + + config = mkIf config.xdg.sounds.enable { + environment.pathsToLink = [ + "/share/sounds" + ]; + }; + +} diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 09ed55c0699a..01eb766fb4dd 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -12,6 +12,7 @@ ./config/xdg/menus.nix ./config/xdg/mime.nix ./config/appstream.nix + ./config/xdg/sounds.nix ./config/gtk/gtk-icon-cache.nix ./config/gnu.nix ./config/i18n.nix