diff options
author | Bobby Rong <rjl931189261@126.com> | 2024-01-27 16:20:15 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2024-03-17 13:42:33 +0800 |
commit | a4bca9aaef02c625ffcb2c11322d7a87192ac33b (patch) | |
tree | 9cb6986e409b2d5f1cf73e80e45a61ad796def6c /nixos/modules/services/x11 | |
parent | e49a58b847a4eae91203cbaad128dc82c39f46e1 (diff) |
nixos/pantheon: Add missing gala-daemon systemd services
Otherwise it doesn't autostart after user session managed by systemd.
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/pantheon.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/pantheon.nix b/nixos/modules/services/x11/desktop-managers/pantheon.nix index b9ca6bd4ba8d3..2cfdc69b86e06 100644 --- a/nixos/modules/services/x11/desktop-managers/pantheon.nix +++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix @@ -190,6 +190,22 @@ in "org.gnome.SettingsDaemon.XSettings.service" ]; + # https://github.com/elementary/gala/issues/1826#issuecomment-1890461298 + systemd.user.services."io.elementary.gala.daemon@" = { + unitConfig = { + Description = "Gala Daemon"; + BindsTo = "io.elementary.gala@.service"; + After = "io.elementary.gala@.service"; + }; + + serviceConfig = { + Type = "dbus"; + BusName = "org.pantheon.gala.daemon"; + ExecStart = "${pkgs.pantheon.gala}/bin/gala-daemon"; + Slice = "session.slice"; + }; + }; + # Global environment environment.systemPackages = (with pkgs.pantheon; [ elementary-session-settings |