NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.28k stars 14.27k forks source link

Hyprland: Default Invalid Session Entry #355912

Open hakan-demirli opened 1 week ago

hakan-demirli commented 1 week ago

Describe the bug

2 session entries are generated on login manager.

Hyprland (systemd) is selected by default and it is buggy.

Just Hyprland entry is working as expected.

Steps To Reproduce

Steps to reproduce the behavior:

  1. programs.hyprland.enable = true;
  2. reboot
  3. Select Hyprland (systemd) session entry on boot. (Selected by default on my system).

Expected behavior

Additional context

Happened after https://github.com/NixOS/nixpkgs/pull/354900 and related to uwsm session manager.

Notify maintainers

@fufexan

Add a :+1: reaction to issues you find important.

hakan-demirli commented 1 week ago

I think the systemd entry should not be created or at least should not be selected by default.

The breaking changes listed on the release page also do not mention the introduction of uwsm.

fufexan commented 1 week ago

The breaking changes listed on the release page also do not mention the introduction of uwsm.

Because uwsm was introduced after the release.

I'm not sure why the systemd session file appears, as it's not explicitly defined in passthru.providedSessions. I can add a patch that removes it until the next release though.

The fact that it's selected by default is most likely because of the the display manager's ordering.

uxodb commented 6 days ago

I had the same issue, had to fix the default entry by enabling


services.displayManager.sddm.settings = { 
  General = {
    DefaultSession = "hyprland.desktop";
  };
};