Initial commit
This commit is contained in:
5
nixos-config/services/default.nix
Normal file
5
nixos-config/services/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
imports = [
|
||||
./openssh.nix
|
||||
];
|
||||
}
|
||||
12
nixos-config/services/openssh.nix
Normal file
12
nixos-config/services/openssh.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
||||
settings = {
|
||||
PermitRootLogin = "prohibit-password";
|
||||
KbdInteractiveAuthentication = false;
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user