Add basic new server config
Includes sshd for easy connecting in local virtualized environment.
This commit is contained in:
parent
ac39ed944d
commit
a7a3cbbc7a
5 changed files with 122 additions and 15 deletions
13
modules/sshd.nix
Normal file
13
modules/sshd.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue