diff options
author | azahi <azat@bahawi.net> | 2025-02-17 02:21:56 +0300 |
---|---|---|
committer | azahi <azat@bahawi.net> | 2025-02-17 02:21:56 +0300 |
commit | 59180328cda59817d71cd58c8f48ead047375064 (patch) | |
tree | 2cdd7d1bfa309839ef624c19daf283f510aacf69 /modules/common/xdg.nix | |
parent | 2025-02-05 (diff) |
2025-02-17
Diffstat (limited to '')
-rw-r--r-- | modules/common/xdg.nix | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/modules/common/xdg.nix b/modules/common/xdg.nix index e91d2c5..805afe1 100644 --- a/modules/common/xdg.nix +++ b/modules/common/xdg.nix @@ -93,21 +93,24 @@ in }; hm.xdg = lib.mkMerge [ - (with cfg; { + { enable = true; - inherit cacheHome; - inherit configHome; - inherit dataHome; - inherit stateHome; - inherit userDirs; - }) + inherit (cfg) + cacheHome + configHome + dataHome + stateHome + userDirs + ; + } (lib.mkIf this.isHeadful { mimeApps = { enable = true; - defaultApplications = lib.mkMerge ( - lib.mapAttrsToList (n: v: lib.genAttrs v (_: [ "${n}.desktop" ])) cfg.defaultApplications - ); + defaultApplications = + cfg.defaultApplications + |> lib.mapAttrsToList (n: v: lib.genAttrs v (_: [ "${n}.desktop" ])) + |> lib.mkMerge; }; }) ]; |