diff options
author | Bobby Rong <rjl931189261@126.com> | 2023-07-09 17:35:28 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2024-03-17 13:41:51 +0800 |
commit | 7522f97cbef26c7ca6b15615ad2144730232dbe4 (patch) | |
tree | b25a7754d0d37c5c92044e11518c35c2a0852dfd /nixos/modules/services/x11 | |
parent | 4c7ad186a58f25ce06cf2819bf8acbd378b52dad (diff) |
pantheon: Manage user session with systemd
This is now needed as gnome-session 46 drops `--builtin` option.
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/pantheon.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/pantheon.nix b/nixos/modules/services/x11/desktop-managers/pantheon.nix index 59bc142eeb7f..b9ca6bd4ba8d 100644 --- a/nixos/modules/services/x11/desktop-managers/pantheon.nix +++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix @@ -174,12 +174,22 @@ in # https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1443 pkgs.pantheon.mutter ]; - systemd.packages = [ - pkgs.pantheon.gnome-settings-daemon + systemd.packages = with pkgs; [ + gnome.gnome-session + pantheon.gala + pantheon.gnome-settings-daemon + pantheon.elementary-session-settings ]; programs.dconf.enable = true; networking.networkmanager.enable = mkDefault true; + systemd.user.targets."gnome-session-x11-services".wants = [ + "org.gnome.SettingsDaemon.XSettings.service" + ]; + systemd.user.targets."gnome-session-x11-services-ready".wants = [ + "org.gnome.SettingsDaemon.XSettings.service" + ]; + # Global environment environment.systemPackages = (with pkgs.pantheon; [ elementary-session-settings |