Help with Hyprland

Hi. I recently created my nixos system with hyprland. Everything is pretty much working fine, I have just two problems to what I havent found solution yet. So I would be gratefull if someone helps me with this.

  1. I wasn’t able to setup any window manager to start hyprland session. I tried gdm and sddm and both didn’t see hyprland session

  2. Screen sharing is not working. I just need to be able to screen share my desktop from web skype client for work purposes sometimes. But when I try to screenshare, I can only share different chrome tabs from chrome where I start sharing. If I want to switch to share window or screen, it dont let me select that and instatnly switches back to share chrome tab option. I tried adding xwaylandvideobridge, adding xdg-desktop-portal, xdg-desktop-portal-hyprland (even that shouldn’t be necessary if it is bundled with hyprland), but nothing helped

Can anyone help with that please? Repo is here GitHub - radek-stasta/nixos: NixOS Configurations, you need to look for hyprland stuff, since I have multiple configurations for multiple desktop environments there.

I don’t see the hyprland NixOS module enabled anywhere in your config, which you can do with:

programs.hyprland.enable = true;

According to the Nix – Hyprland Wiki page enabling it is necessary because:

  • (Required) NixOS Module: enables critical components needed to run Hyprland properly
  • Without this, you may have issues with XDG Portals, or missing session files in your Display Manager.

Whereas the HM module is optional, it depends on the NixOS module:

  • (Optional) Home Manager module: lets you configure Hyprland declaratively through Home Manager.
  • This module configures Hyprland and adds it to your user’s $PATH, but does not make certain system-level changes such as adding a desktop session file for your display manager. This is handled by the NixOS module once you enable it.
2 Likes

Wow my friend, you are absolute legend. I spent couple of days searching for some obscure solutions and I missed that crucial information on Hyprland website. :frowning: I added this: nixos/modules/nixos/hyprland.nix at 4027de16f507b87e661cf1d41f13d6ecc35ddb12 · radek-stasta/nixos · GitHub and both my problems gone.

Thank you very much :heart:

1 Like