{ pkgs, config, lib, ... }: let cfg = config.my.programs.sway; in { options.my.programs.sway = with lib; { enable = mkEnableOption "sway configuration"; }; config = lib.mkIf cfg.enable { programs.sway = { enable = true; wrapperFeatures.gtk = true; extraPackages = with pkgs; [ brightnessctl polkit_gnome xsettingsd swaylock swayidle wl-clipboard ]; extraSessionCommands = '' export MOZ_ENABLE_WAYLAND=1 ''; }; }; }