summaryrefslogtreecommitdiffstats
path: root/nixos/modules/config/xdg
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2022-05-29 21:29:30 +0200
committerJan Tojnar <jtojnar@gmail.com>2022-06-09 13:04:20 +0200
commit7f0ce26bbd35606fe656c8d9c829bda0aaddc1ad (patch)
tree49cf15f9d528530c6b9803f79b2a79cc109be6b0 /nixos/modules/config/xdg
parentaad39fe41a3c9d7fb0dd438748c02f29e08fa15b (diff)
nixos/xdg/icons: Install hicolor-icon-theme
While the package contains no icons, it includes an `index.theme` file describing directories where toolkits should look for icons installed by apps.
Diffstat (limited to 'nixos/modules/config/xdg')
-rw-r--r--nixos/modules/config/xdg/icons.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/config/xdg/icons.nix b/nixos/modules/config/xdg/icons.nix
index c83fdc251ef0..1e91670cf03b 100644
--- a/nixos/modules/config/xdg/icons.nix
+++ b/nixos/modules/config/xdg/icons.nix
@@ -1,4 +1,4 @@
-{ config, lib, ... }:
+{ config, lib, pkgs, ... }:
with lib;
{
@@ -23,6 +23,12 @@ with lib;
"/share/pixmaps"
];
+ environment.systemPackages = [
+ # Empty icon theme that contains index.theme file describing directories
+ # where toolkits should look for icons installed by apps.
+ pkgs.hicolor-icon-theme
+ ];
+
# libXcursor looks for cursors in XCURSOR_PATH
# it mostly follows the spec for icons
# See: https://www.x.org/releases/current/doc/man/man3/Xcursor.3.xhtml Themes