adjusting scripts to my own user

This commit is contained in:
akunito 2024-07-17 16:50:35 +02:00
parent ef32ac7a28
commit 0faf6690a6
32 changed files with 2252 additions and 12 deletions

View file

@ -0,0 +1,15 @@
{ userSettings, authorizedKeys ? [], ... }:
{
# Enable incoming ssh
services.openssh = {
enable = true;
openFirewall = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
users.users.${userSettings.username}.openssh.authorizedKeys.keys = authorizedKeys;
}