about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-11-16 02:03:15 +0100
committerGitHub <noreply@github.com>2022-11-16 02:03:15 +0100
commit8ef6a0aca6853069932ee0826238b000f415e85b (patch)
treea948f46d7e25a5f6dbf548dc781864757bad0897 /nixos/modules/config
parent7aac392d39ed15de9c7fe253b67aaf2bd5178c6b (diff)
parentf938099de1beafc96ddb979537d8e1288e12071c (diff)
Merge pull request #188467 from kekrby/fix-gtk-icon-cache
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/gtk/gtk-icon-cache.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/config/gtk/gtk-icon-cache.nix b/nixos/modules/config/gtk/gtk-icon-cache.nix
index 87d5483e36ab9..62f0cc3f090f9 100644
--- a/nixos/modules/config/gtk/gtk-icon-cache.nix
+++ b/nixos/modules/config/gtk/gtk-icon-cache.nix
@@ -52,10 +52,8 @@ with lib;
 
     environment.extraSetup = ''
       # For each icon theme directory ...
-
-      find $out/share/icons -mindepth 1 -maxdepth 1 -print0 | while read -d $'\0' themedir
+      find $out/share/icons -exec test -d {} ';' -mindepth 1 -maxdepth 1 -print0 | while read -d $'\0' themedir
       do
-
         # In order to build the cache, the theme dir should be
         # writable. When the theme dir is a symbolic link to somewhere
         # in the nix store it is not writable and it means that only