about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-11-09 21:33:49 +0000
committerGitHub <noreply@github.com>2019-11-09 21:33:49 +0000
commit6783fdd561b0a57c6c1f73a2b7bcc15e3864de1b (patch)
tree5f70eaa71d7322c68cc72ec83fe8efbf4db7d55d /nixos/modules
parentdedf6ded5a326a9e6b40a5dc182e5078dd6fcb0b (diff)
parent4e2161f9ed88c4b34760a4b29fb68dc9aa9ef1df (diff)
downloadnixlib-6783fdd561b0a57c6c1f73a2b7bcc15e3864de1b.tar
nixlib-6783fdd561b0a57c6c1f73a2b7bcc15e3864de1b.tar.gz
nixlib-6783fdd561b0a57c6c1f73a2b7bcc15e3864de1b.tar.bz2
nixlib-6783fdd561b0a57c6c1f73a2b7bcc15e3864de1b.tar.lz
nixlib-6783fdd561b0a57c6c1f73a2b7bcc15e3864de1b.tar.xz
nixlib-6783fdd561b0a57c6c1f73a2b7bcc15e3864de1b.tar.zst
nixlib-6783fdd561b0a57c6c1f73a2b7bcc15e3864de1b.zip
Merge pull request #71416 from worldofpeace/gnome3-sound-theme
nixos/gnome3: add sound-theme-freedesktop
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/config/xdg/sounds.nix6
-rw-r--r--nixos/modules/services/x11/desktop-managers/gnome3.nix6
2 files changed, 11 insertions, 1 deletions
diff --git a/nixos/modules/config/xdg/sounds.nix b/nixos/modules/config/xdg/sounds.nix
index 148240d631cf..14d6340fc33b 100644
--- a/nixos/modules/config/xdg/sounds.nix
+++ b/nixos/modules/config/xdg/sounds.nix
@@ -1,4 +1,4 @@
-{ config, lib, ... }:
+{ config, lib, pkgs, ... }:
 
 with lib;
 {
@@ -14,6 +14,10 @@ with lib;
   };
 
   config = mkIf config.xdg.sounds.enable {
+    environment.systemPackages = [
+      pkgs.sound-theme-freedesktop
+    ];
+
     environment.pathsToLink = [
       "/share/sounds"
     ];
diff --git a/nixos/modules/services/x11/desktop-managers/gnome3.nix b/nixos/modules/services/x11/desktop-managers/gnome3.nix
index 5ad31e5b9d00..0aae25662c64 100644
--- a/nixos/modules/services/x11/desktop-managers/gnome3.nix
+++ b/nixos/modules/services/x11/desktop-managers/gnome3.nix
@@ -217,6 +217,12 @@ in
 
       services.xserver.updateDbusEnvironment = true;
 
+      # gnome has a custom alert theme but it still
+      # inherits from the freedesktop theme.
+      environment.systemPackages = with pkgs; [
+        sound-theme-freedesktop
+      ];
+
       # Needed for themes and backgrounds
       environment.pathsToLink = [
         "/share" # TODO: https://github.com/NixOS/nixpkgs/issues/47173