mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
@@ -1,11 +1,13 @@
|
||||
{ config, ... }: {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
permitRootLogin = "no";
|
||||
passwordAuthentication = false;
|
||||
openFirewall = true;
|
||||
ports = [ 22 ];
|
||||
settings.AllowUsers = [ config.var.username ];
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
AllowUsers = [ config.var.username ];
|
||||
};
|
||||
};
|
||||
|
||||
users.users."${config.var.username}" = {
|
||||
|
||||
Reference in New Issue
Block a user