User management: Difference between revisions
m Add category configuration and nixos manual |
add user to group section |
||
Line 40: | Line 40: | ||
SSH authentication can be customized by setting the {{nixos:option|users.users.*.openssh.authorizedKeys|users.users.<name>.openssh.authorizedKeys}} option. | SSH authentication can be customized by setting the {{nixos:option|users.users.*.openssh.authorizedKeys|users.users.<name>.openssh.authorizedKeys}} option. | ||
== Adding User to a group == | |||
Users can be added to a group by setting the {{nixos:option|users.users.*.extraGroups|users.users.<name>.extraGroups}} option. For example: | |||
{{file|/etc/nixos/configuration.nix|nix| | |||
<nowiki> | |||
users.users.alice = { | |||
... | |||
extraGroups = [ "wheel" "networkmanager" ]; | |||
}; | |||
</nowiki> | |||
}} | |||
== Home Manager == | == Home Manager == |