# NOTE: hyprland must be enabled in BOTH your host config (for running hyprland) # and your home-manager config (for managing hyprland's config files) { pkgs, pkgs-unstable, inputs, config, lib, ... }: { options.hyprland = { enable = lib.mkEnableOption "Hyprland"; }; config = lib.mkIf config.hyprland.enable { wayland.windowManager.hyprland = { enable = true; package = pkgs.hyprland; # pkgs-unstable.hyprland; xwayland.enable = true; systemd = { enable = true; # enable autostart of applications # REF: `man 8 systemd-xdg-autostart-generator` enableXdgAutostart = true; }; plugins = with inputs; [ split-monitor-workspaces.packages.${pkgs.system}.split ]; }; xdg.portal = { enable = true; extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; }; # TODO: finish this }; }