Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 422 Bytes

adding_users.md

File metadata and controls

16 lines (14 loc) · 422 Bytes

Adding users

  1. Create /users/{{user}}.nix with the following contents:
{config, lib, ...}:
{
  users.users.{{user}} = {
    isNormalUser = true;
    description = "{{description}}";
    extraGroups = [{{groups...}}];
    openssh.authorizedKeys.keys = with import ../ssh-keys.nix; [{{keys...}}];
  };
}
  1. Import the {{user}}.nix module in /machines/bastion.nix and other desired machines