Skip to content

RFC: Unified PAM settings for different display managers #17044

@bennofs

Description

@bennofs
Problem

The current state of PAM configuration in NixOS requires a lot of duplication. Each display manager module contains its own <name of display manager> pam service for controlling login, which is a lot of duplication. For example, pam.services.lightdm is the same as pam.services.sddm.

Because of that, if you want to change the PAM configuration for login, you have to do so depending on which display manager is enabled, which is inconvenient for our users. Setting the rules for how to login should not depend on which particular display manager is used.

Ideas for solution

I propose that we try to factor out the common PAM configuration options, and provide a "default" common-auth (name up to debate) pam service or similar that can then be include'd by other PAM services, such as graphical or nongraphical display managers. This is also the solution that other distributions, such as Debian, have adopted.

Comments?

I have posted this as an issue instead of a PR because I have not put much thought into how to separate the PAM services yet. For example, should we have a common-auth-autologin service as well? What are your thoughts for which common PAM services we need? I volunteer to implement this after the details are fleshed out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancementAdd something new or improve an existing system.2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS9.needs: reporter feedbackThis issue needs the person who filed it to respond
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions