Skip to content

Faulty user group detection #374

Description

@GetPsyched

The following incorrectly assumes that the owner string matches the Nix attribute name of the user.

default = users.${config.owner}.group or "0";

For example, my configuration does:

{ users.users.primary.name = "getpsyched"; }

which means the actual username in Linux is getpsyched, but the Nix attribute set key is primary.

This breaks in the above snippet because users.users.getpsyched does not exist. It should instead be something along the lines of:

default = (filterAttrs (n: v: v.name == config.owner) users).group or "0";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions