nixfiles/nixos/environments/hyprland/hyprland.nix
2025-07-13 05:10:57 -07:00

28 lines
641 B
Nix

{
pkgs,
inputs,
...
}: {
programs.hyprland = {
enable = true;
withUWSM = true;
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
portalPackage = inputs.hyprland.packages."${pkgs.system}".xdg-desktop-portal-hyprland;
};
# auto launch hyprland on tty1
environment.loginShellInit = ''
if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ] && uwsm check may-start; then
exec uwsm start hyprland-uwsm.desktop
fi
'';
services.clipboard-sync.enable = true;
/*
services.displayManager.sddm = {
enable = true;
package = pkgs.kdePackages.sddm;
wayland.enable = true;
};
*/
}