about summary refs log tree commit diff
path: root/nixos/modules/services/x11
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-10-06 17:56:38 +0800
committerBobby Rong <rjl931189261@126.com>2023-10-06 18:22:07 +0800
commit21f5cd377acbaa9c94130c4db38695d8a4fa053d (patch)
treebdb8fecdfe014e3a589e7fc8d2bc4a1f82146b51 /nixos/modules/services/x11
parentf6345cd25941b8eb17a7e7768b9a3de0b494eb43 (diff)
downloadnixlib-21f5cd377acbaa9c94130c4db38695d8a4fa053d.tar
nixlib-21f5cd377acbaa9c94130c4db38695d8a4fa053d.tar.gz
nixlib-21f5cd377acbaa9c94130c4db38695d8a4fa053d.tar.bz2
nixlib-21f5cd377acbaa9c94130c4db38695d8a4fa053d.tar.lz
nixlib-21f5cd377acbaa9c94130c4db38695d8a4fa053d.tar.xz
nixlib-21f5cd377acbaa9c94130c4db38695d8a4fa053d.tar.zst
nixlib-21f5cd377acbaa9c94130c4db38695d8a4fa053d.zip
gnome.gnome-flashback: Add mkWmApplication
Having this in environment.systemPackages shouldn't be worse than
adding as XDG_DATA_DIRS in gnome-session.
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r--nixos/modules/services/x11/desktop-managers/gnome.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/gnome.nix b/nixos/modules/services/x11/desktop-managers/gnome.nix
index 97df50588500..2f9c75bbfb3e 100644
--- a/nixos/modules/services/x11/desktop-managers/gnome.nix
+++ b/nixos/modules/services/x11/desktop-managers/gnome.nix
@@ -311,7 +311,9 @@ in
         (gnome-panel-with-modules.override {
           panelModulePackages = cfg.flashback.panelModulePackages;
         })
-      ];
+      ]
+      # For /share/applications/${wmName}.desktop
+      ++ (map (wm: gnome-flashback.mkWmApplication { inherit (wm) wmName wmLabel wmCommand; }) flashbackWms);
     })
 
     (mkIf serviceCfg.core-os-services.enable {