This commit is contained in:
2026-10-02 14:37:07 +02:00
parent acd29e0ae7
commit 844c637a82
3 changed files with 98 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
_: {
hardware.raspberry-pi.firmware.enable = true;
hardware.enableRedistributableFirmware = true;
# Enable the OpenSSH daemon
services.openssh = {
enable = true;
# Require SSH keys for login (disable passwords)
settings.PasswordAuthentication = false;
};
# Define a user account
users.users.jonathan = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFGgP6NnoYmgtork7XWkIy/k9lFs91y718S8Ez0PsagC Jonathan@Berrisch.biz"
];
};
# Allow passwordless sudo for the wheel group (convenient for headless setup)
# security.sudo.wheelNeedsPassword = false;
}