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";
The following incorrectly assumes that the owner string matches the Nix attribute name of the user.
agenix/modules/age.nix
Line 181 in b027ee2
For example, my configuration does:
which means the actual username in Linux is
getpsyched, but the Nix attribute set key isprimary.This breaks in the above snippet because
users.users.getpsycheddoes not exist. It should instead be something along the lines of: