ammending the previous with un added files
This commit is contained in:
parent
7404966c92
commit
d0f4af1214
10 changed files with 330 additions and 6 deletions
19
modules/services/openssh.nix
Normal file
19
modules/services/openssh.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.openssh = lib.mkDefault {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
#settings = lib.mkDefault {
|
||||
passwordAuthentication = false;
|
||||
permitRootLogin = "no";
|
||||
kbdInteractiveAuthentication = false;
|
||||
#};
|
||||
startWhenNeeded = true;
|
||||
kexAlgorithms = [ "curve25519-sha256@libssh.org" ];
|
||||
};
|
||||
security.pam = lib.mkDefault {
|
||||
enableSSHAgentAuth = true;
|
||||
services.sudo.sshAgentAuth = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue