From 4bdbbc1b339d3e74d13c964e120fd27ad6bf3303 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sat, 19 Oct 2019 21:32:17 -0400 Subject: nixos/gnome3: add sound-theme-freedesktop I've noticed a similar issue in Pantheon, without this sound theme installed there's no system sounds. I believe it's because the gnome theme and the pantheon theme inherit this one. --- nixos/modules/services/x11/desktop-managers/gnome3.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nixos/modules') 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 -- cgit 1.4.1 From 4e2161f9ed88c4b34760a4b29fb68dc9aa9ef1df Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sat, 2 Nov 2019 10:38:29 -0400 Subject: nixos/xdg/sounds: add sound-theme-freedesktop --- nixos/modules/config/xdg/sounds.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'nixos/modules') 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" ]; -- cgit 1.4.1