{ config, lib, pkgs, ... }: with lib; let cfg = config.home.roles.desktop; in { options.home.roles.desktop = { enable = mkEnableOption "Enable desktop GUI applications and utilities"; }; config = mkIf cfg.enable { home.packages = with pkgs; [ # Desktop applications bitwarden dunst keepassxc kitty # Desktop utilities solaar # Logitech management software waybar wofi # System utilities with GUI components (snapcast.override { pulseaudioSupport = true; }) ]; programs.firefox = { enable = true; }; programs.spotify-player.enable = true; services.gnome-keyring = { enable = true; }; xdg.enable = true; # Note: modules must be imported at top-level home config }; }