Add remote maintenance user

main
kalle 2024-11-22 16:03:21 +01:00
parent ba8fcdd556
commit ec0eb624df
2 changed files with 11 additions and 0 deletions

1
authorized_keys Normal file
View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILZKBTf7HdsZDJDwblnROAaGZDIWi/jWNwGjrih8UPuY kalle@kalle-laptop

View File

@ -33,6 +33,16 @@
"flakes" "flakes"
]; ];
# Set up user for remote admin
users.users."maintenance" = {
isNormalUser = true;
group = "maintenance";
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keyFiles = [ ../authorized_keys ];
};
users.groups."maintenance" = {};
# Enable mDNS for `hostname.local` addresses # Enable mDNS for `hostname.local` addresses
services.avahi.enable = true; services.avahi.enable = true;
services.avahi.nssmdns = true; services.avahi.nssmdns = true;