{ config, pkgs, lib, ... }: { options = { desktop = { sway = { enable = lib.mkEnableOption "enable sway"; }; }; }; config = lib.mkIf config.desktop.sway.enable { environment.systemPackages = with pkgs; [ grim # screenshot functionality slurp # screenshot functionality wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout ]; # Enable the gnome-keyring secrets vault. # Will be exposed through DBus to programs willing to store secrets. services.gnome.gnome-keyring.enable = true; programs.sway = { enable = true; wrapperFeatures.gtk = true; package = null; }; }; }