nixos-configuration/user.nix
2023-02-20 09:45:37 -06:00

19 lines
411 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" ];
packages = with pkgs; [
firefox
];
};
users.defaultUserShell = pkgs.zsh;
}