about summary refs log tree commit diff
path: root/modules/xdg
diff options
context:
space:
mode:
Diffstat (limited to 'modules/xdg')
-rw-r--r--modules/xdg/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/xdg/default.nix b/modules/xdg/default.nix
index fc552883fb16..a0417f65859a 100644
--- a/modules/xdg/default.nix
+++ b/modules/xdg/default.nix
@@ -1,7 +1,7 @@
 { lib, pkgs, config, ... }:
 
 let
-  inherit (lib) mapAttrsToList mkOption;
+  inherit (lib) filterAttrs mapAttrsToList mkOption;
   inherit (lib.types) loaOf attrsOf path submodule;
   inherit (pkgs) linkFarm;
 
@@ -29,7 +29,8 @@ in
                                     (mapAttrsToList
                                       (name: path: { inherit name path; })
                                       xdg.config.paths);
-                  }) config.users.users);
+                  }) (filterAttrs (_: { xdg, ... }: xdg.config.paths != {})
+                                  config.users.users));
 
       environment.extraInit = ''
         etc_xdg_config_home=/run/current-system/etc/xdg/nixos/per-user/$USER