nixos-configuration/user.nix

17 lines
362 B
Nix
Raw Permalink Normal View History

2023-02-20 15:45:37 +00:00
{ name, authorizedKeys ? [] }:
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;
description = name;
2023-02-11 01:40:39 +00:00
shell = pkgs.zsh;
extraGroups = [ "networkmanager" "wheel" ];
};
users.defaultUserShell = pkgs.zsh;
}