about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-11-06 15:14:25 -0500
committerworldofpeace <worldofpeace@protonmail.ch>2019-11-06 15:15:11 -0500
commit473cd0d4ba97a579b473c37022a5809af3b6b76f (patch)
treefafa1021b9af38ca21961b670ed7cd26806691c4 /nixos
parent602e14fc8bc7d7acc5b99687de2ecc7d23da4201 (diff)
downloadnixlib-473cd0d4ba97a579b473c37022a5809af3b6b76f.tar
nixlib-473cd0d4ba97a579b473c37022a5809af3b6b76f.tar.gz
nixlib-473cd0d4ba97a579b473c37022a5809af3b6b76f.tar.bz2
nixlib-473cd0d4ba97a579b473c37022a5809af3b6b76f.tar.lz
nixlib-473cd0d4ba97a579b473c37022a5809af3b6b76f.tar.xz
nixlib-473cd0d4ba97a579b473c37022a5809af3b6b76f.tar.zst
nixlib-473cd0d4ba97a579b473c37022a5809af3b6b76f.zip
nixos/gnome3: add gnome-flashback to systemd.packages
When we did the revert of adding gnome-flashback to systemd.packages [0]
I forgot to test with other display managers. If we use GDM with gnome-flashback
it appears it doesn't try to fallback to non-systemd startup and always fails and
starts the regular gnome-session. So adding gnome-flashback to systemd.packages
was perfectly fine, but we did forgot one detail. We need systemd targets for the
customSessions which is added using  mkSystemdTargetForWm in the gnome-
flashback package.

[0]: 42f567b30def552337bf17a6d30410c16c2b47cc
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/desktop-managers/gnome3.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/gnome3.nix b/nixos/modules/services/x11/desktop-managers/gnome3.nix
index 5ad31e5b9d00..7338319f1115 100644
--- a/nixos/modules/services/x11/desktop-managers/gnome3.nix
+++ b/nixos/modules/services/x11/desktop-managers/gnome3.nix
@@ -184,6 +184,13 @@ in
         enableGnomeKeyring = true;
       };
 
+      systemd.packages = with pkgs.gnome3; [
+        gnome-flashback
+      ] ++ (map
+        (wm: gnome-flashback.mkSystemdTargetForWm {
+          inherit (wm) wmName;
+        }) cfg.flashback.customSessions);
+
       services.dbus.packages = [
         pkgs.gnome3.gnome-screensaver
       ];