Skip to content

nixos/ly: add support for auto-login - #473013

Merged
Defelo merged 1 commit into
NixOS:masterfrom
zacharyarnaise:ly_autologin
Jan 28, 2026
Merged

Defelo merged 1 commit into
NixOS:masterfrom
zacharyarnaise:ly_autologin

Conversation

@zacharyarnaise

@zacharyarnaise zacharyarnaise commented Dec 21, 2025 •

Copy link
Copy Markdown
Member

Support for auto-login in ly was added recently, in v1.3.0 (update PR: #468869).
This PR allows configuration of ly's auto-login using options services.displayManager.autoLogin in a similar way as it's been done for GDM, LightDM and SDDM.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Dec 21, 2025
@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Dec 21, 2025

@Vonfry Vonfry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diff LGTM.

@nixpkgs-ci nixpkgs-ci Bot added 2.status: merge conflict This PR has merge conflicts with the target branch 12.approvals: 1 This PR was reviewed and approved by one person. labels Dec 22, 2025
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 22, 2025
@zacharyarnaise

This comment was marked as outdated.

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/2721

@zacharyarnaise
zacharyarnaise force-pushed the ly_autologin branch 3 times, most recently from a8e0d21 to 4e8cd69 Compare January 6, 2026 22:33
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 20, 2026
@zacharyarnaise

Copy link
Copy Markdown
Member Author

@Aleksanaa Could you take a look at this PR? Thanks

@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 20, 2026
@zacharyarnaise
zacharyarnaise requested a review from Defelo January 28, 2026 15:24
@zacharyarnaise

Copy link
Copy Markdown
Member Author

@Defelo This PR has been previously approved by the module maintainer, it's been waiting on a review by @Aleksanaa but it seems like they are unavailable.

@Defelo

Defelo commented Jan 28, 2026

Copy link
Copy Markdown
Member

I'm sure you already tested this manually, but would it be possible to extend the NixOS test to also cover the auto login case (at least for one of the x11/wayland scenarios)? Not a blocker, but at first glance it doesn't seem to be too complicated, and I would feel more confident merging this.

@zacharyarnaise

zacharyarnaise commented Jan 28, 2026 •

Copy link
Copy Markdown
Member Author

@Defelo I'm sure you already tested this manually, but would it be possible to extend the NixOS test to also cover the auto login case (at least for one of the x11/wayland scenarios)? Not a blocker, but at first glance it doesn't seem to be too complicated, and I would feel more confident merging this.

Ha good point, I added a test using X11.

@Defelo Defelo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you! Diff LGTM, test ran successfully, merging now

@Defelo
Defelo added this pull request to the merge queue Jan 28, 2026
Merged via the queue into NixOS:master with commit 938aa33 Jan 28, 2026
0 of 4 checks passed
@zacharyarnaise
zacharyarnaise deleted the ly_autologin branch January 29, 2026 08:25
maximousblk added a commit to maximousblk/nyx that referenced this pull request Apr 25, 2026
… service in ly

- Replace manual pam.services.ly-autologin with services.displayManager.autoLogin
- Set defaultSession = "niri" via services.displayManager
- ly v1.3.0 added native auto-login support [1][2]

[1]: NixOS/nixpkgs#473013
[2]: NixOS/nixpkgs#420889
maximousblk added a commit to maximousblk/nyx that referenced this pull request Apr 26, 2026
… service in ly

- Replace manual pam.services.ly-autologin with services.displayManager.autoLogin
- Set defaultSession = "niri" via services.displayManager
- ly v1.3.0 added native auto-login support [1][2]

[1]: NixOS/nixpkgs#473013
[2]: NixOS/nixpkgs#420889
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants