{ inputs, pkgs, config, lib, ...}: { programs.hyprland = lib.mkIf config.my.desktop.hyprland.enable { enable = true; # set the flake package package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; # make sure to also set the portal package, so that they are in sync portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; withUWSM = true; }; environment.etc."xdg/wayland-sessions/hyprland-uwsm-custom.desktop".text = '' [Desktop Entry] Name=Hyprland (UWSM custom) Comment=Hyprland with my custom setup Exec=${pkgs.uwsm}/bin/uwsm start -F -- ${inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland}/bin/start-hyprland Type=Application ''; }