2023-02-20 15:45:37 +00:00
|
|
|
{ name, authorizedKeys ? [] }:
|
2023-02-15 17:11:28 +00:00
|
|
|
|
2023-02-11 01:48:02 +00:00
|
|
|
{ pkgs, ... }:
|
2023-02-11 01:40:39 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
# Define a user account. Don't forget to set a password with `passwd`.
|
|
|
|
users.users.asonix = {
|
2023-02-20 15:45:37 +00:00
|
|
|
openssh.authorizedKeys.keys = authorizedKeys;
|
2023-02-11 01:40:39 +00:00
|
|
|
isNormalUser = true;
|
2023-02-15 17:11:28 +00:00
|
|
|
description = name;
|
2023-02-11 01:40:39 +00:00
|
|
|
shell = pkgs.zsh;
|
2024-06-14 14:48:01 +00:00
|
|
|
extraGroups = [ "lp" "networkmanager" "scanner" "wheel" ];
|
2023-02-11 01:40:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
users.defaultUserShell = pkgs.zsh;
|
|
|
|
}
|