Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

home-manager: configuring xdg portal #409

Open
Misterio77 opened this issue Dec 6, 2023 · 4 comments
Open

home-manager: configuring xdg portal #409

Misterio77 opened this issue Dec 6, 2023 · 4 comments

Comments

@Misterio77
Copy link

Misterio77 commented Dec 6, 2023

Hi all!

I've since figured out how to manage xdg portals entirely through HM (should be merged soon nix-community/home-manager#4707), and thought it might be useful to raise it here for awareness.

Perhaps, once this works through HM, we could look into removing/updating this message:

(Required) NixOS Module: enables critical components needed to run Hyprland properly

As far as I've seen, generates a bit of confusion ("why can't I make my nixos config agnostic to my WM?").

Now that xdg portal (which was the only hyprland-specific system config a HM setup needs to work) is sorted, perhaps we could let them know they can either use the nixos module (for convenience) or, to avoid referring to hyprland on the system config, just set the lower level options directly (opengl, dconf, polkit)?

Happy to open a PR!

Also, should I file a PR/issue to set good defaults for xdg.portal on the HM module, so that it all works automagically?

@Misterio77
Copy link
Author

FYI @fufexan

@fufexan
Copy link
Member

fufexan commented Dec 6, 2023

That's great to hear! However, it won't completely replace the NixOS module. It still enables hardware.opengl, security.polkit and makes the sessionPackage visible to display managers.

@Misterio77
Copy link
Author

Ah right! Totally forgot about the display manager topic. It would be super cool if greeters like regreet could somehow find sessions in user's directories (I currently do it in a slightly hackish way), but yeah for now it's needed.

@fufexan
Copy link
Member

fufexan commented Dec 6, 2023

That's a good idea. We could raise this issue with ReGreet/greetd, but I'm not sure about other display managers. The issue is probably irrelevant outside of immutable distros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants