diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-17 08:29:53 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-17 08:29:53 -0800 |
commit | 9a9c0769242f9ad7ca7eb24ee1352b2567d3cd7c (patch) | |
tree | fbd51fd12e770d44e614aea4f29e43cc156aab84 /hosts/common/desktop | |
parent | sway: install all the required packages (diff) | |
download | world-9a9c0769242f9ad7ca7eb24ee1352b2567d3cd7c.tar.gz |
sway: configure correctly dbus / keyring
Diffstat (limited to '')
-rw-r--r-- | hosts/common/desktop/xserver.nix | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/hosts/common/desktop/xserver.nix b/hosts/common/desktop/xserver.nix index ba7647c..d7cbcd8 100644 --- a/hosts/common/desktop/xserver.nix +++ b/hosts/common/desktop/xserver.nix @@ -13,10 +13,6 @@ wl-clipboard ]; extraSessionCommands = '' - export SDL_VIDEODRIVER=wayland - export QT_QPA_PLATFORM=wayland - export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" - export _JAVA_AWT_WM_NONREPARENTING=1 export MOZ_ENABLE_WAYLAND=1 ''; }; @@ -34,8 +30,17 @@ }; services = { - dbus.packages = [ pkgs.gnome3.dconf ]; - udev.packages = [ pkgs.gnome3.gnome-settings-daemon ]; + dbus = { + enable = true; + packages = [ + pkgs.gcr + pkgs.gnome3.dconf + pkgs.gnome3.gnome-keyring + ]; + }; + udev.packages = [ + pkgs.gnome3.gnome-settings-daemon + ]; gnome.gnome-keyring.enable = true; gvfs.enable = true; @@ -45,8 +50,11 @@ }; }; - # enable gnome keyring unlock on login - security.pam.services = { login.enableGnomeKeyring = true; }; + security = { + polkit.enable = true; + # enable gnome keyring unlock on login + pam.services.gdm.enableGnomeKeyring = true; + }; environment = { pathsToLink = [ "/libexec" ]; |