Add user jalr

This commit is contained in:
Jakob Lechner 2025-10-09 13:46:15 +02:00
parent 864cd65fa5
commit a5e6f5dd7c

View file

@ -1,5 +1,10 @@
{ pkgs, ... }:
let
sshKeys = {
jalr = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3l+Yixrsjhze20CSjvUK4Qj/BNqbTNitgk20vuzPej cardno:25_750_479" ];
};
in
{
environment.systemPackages = with pkgs; [
htop
@ -20,5 +25,16 @@
options = [ "mode=0755" ];
};
services.openssh.enable = true;
users.users = {
jalr = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = sshKeys.jalr;
};
root.openssh.authorizedKeys.keys = sshKeys.jalr;
};
security.sudo.wheelNeedsPassword = false;
system.stateVersion = "25.05";
}