{ config, pkgs, lib, ... }: { programs.sway = { enable = true; wrapperFeatures.gtk = true; extraPackages = with pkgs; [ brightnessctl polkit_gnome xsettingsd swaylock swayidle wl-clipboard ]; extraSessionCommands = '' export MOZ_ENABLE_WAYLAND=1 ''; }; services.xserver = { enable = true; layout = "us"; libinput = { enable = true; touchpad.naturalScrolling = true; }; displayManager = { gdm.enable = true; gdm.wayland = true; defaultSession = "sway"; }; }; services = { 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; gnome = { # Sushi, a quick previewer for Nautilus sushi.enable = true; }; }; security = { polkit.enable = true; # enable gnome keyring unlock on login pam.services.gdm.enableGnomeKeyring = true; }; environment = { pathsToLink = [ "/libexec" ]; homeBinInPath = true; localBinInPath = true; }; }