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

nixos/displayManager: make autoLogin options independent of DM type #85065

Merged
merged 1 commit into from Jul 10, 2020

Conversation

worldofpeace
Copy link
Contributor

Co-authored-by: volth volth@volth.com

Motivation for this change

This code is originally from @volth and split out from #81652. @hedning @jtojnar I believe this is exactly what we talked about doing after the display-manager rewrite PR.

Not sure about changing session options yet #81652 (comment)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@worldofpeace
Copy link
Contributor Author

Will add 20.09 notes.

@hedning
Copy link
Contributor

hedning commented Apr 12, 2020

Not sure about changing session options yet #81652 (comment)?

Right, I guess it depends somewhat on the semantics of defaultSession. We currently have this:

      Graphical session to pre-select in the session chooser (only effective for GDM and LightDM).

      On GDM, LightDM and SDDM, it will also be used as a session for auto-login.

I think having the session bundled with the autoLogin makes the most sense UI wise. So one option would be to just add a autoLogin.session and make it take priority here:
https://github.com/hedning/nixpkgs/blob/40197cd67c41a8ec6714004dd45db11521d2cb18/nixos/modules/services/x11/display-managers/default.nix#L258-L264

We could then make defaultSession either just do «Graphical session to pre-select in the session chooser (only effective for GDM and LightDM)», or leave it alone. Neither option is super, since the pre-selection thing only works in GDM and LightDM, and the auto-login stuff would be sorta superfluous.

@worldofpeace
Copy link
Contributor Author

Ok, I've updated the manual (before it didn't build) and added a release note.
As a result of needing to fix the manual, I had to change autoLogin to a submodule.

@worldofpeace
Copy link
Contributor Author

@GrahamcOfBorg test sddm

@worldofpeace
Copy link
Contributor Author

Rebased.

@worldofpeace
Copy link
Contributor Author

@GrahamcOfBorg test gnome3

@worldofpeace worldofpeace merged commit 747fb48 into NixOS:master Jul 10, 2020
@worldofpeace worldofpeace deleted the autologin-unified branch July 10, 2020 04:04
@nixos-discourse
Copy link

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

https://discourse.nixos.org/t/autologin-appears-in-manual-but-does-not-work/11301/2

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

Successfully merging this pull request may close these issues.

None yet

4 participants