mighrate with lib to narrow scope

This commit is contained in:
arouzing 2023-02-02 18:18:00 -05:00
parent bb3935bdb7
commit 9496f06b87

View file

@ -1,16 +1,18 @@
_: { config, pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
{
services.openssh = {
services.openssh = lib.mkDefault {
enable = true;
openFirewall = true;
settings = lib.mkDefault {
passwordAuthentication = false;
permitRootLogin = "no";
kbdInteractiveAuthentication = false;
};
startWhenNeeded = true;
kexAlgorithms = [ "curve25519-sha256@libssh.org" ];
passwordAuthentication = false;
kbdInteractiveAuthentication = false;
permitRootLogin = "no";
};
security.pam = mkDefault{
security.pam = lib.mkDefault {
enableSSHAgentAuth = true;
services.sudo.sshAgentAuth = true;
};