16 lines
362 B
Nix
16 lines
362 B
Nix
{ name, authorizedKeys ? [] }:
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
# Define a user account. Don't forget to set a password with `passwd`.
|
|
users.users.asonix = {
|
|
openssh.authorizedKeys.keys = authorizedKeys;
|
|
isNormalUser = true;
|
|
description = name;
|
|
shell = pkgs.zsh;
|
|
extraGroups = [ "networkmanager" "wheel" ];
|
|
};
|
|
|
|
users.defaultUserShell = pkgs.zsh;
|
|
}
|