mighrate with lib to narrow scope
This commit is contained in:
parent
bb3935bdb7
commit
9496f06b87
1 changed files with 8 additions and 6 deletions
|
|
@ -1,16 +1,18 @@
|
||||||
_: { config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.openssh = {
|
services.openssh = lib.mkDefault {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
settings = lib.mkDefault {
|
||||||
|
passwordAuthentication = false;
|
||||||
|
permitRootLogin = "no";
|
||||||
|
kbdInteractiveAuthentication = false;
|
||||||
|
};
|
||||||
startWhenNeeded = true;
|
startWhenNeeded = true;
|
||||||
kexAlgorithms = [ "curve25519-sha256@libssh.org" ];
|
kexAlgorithms = [ "curve25519-sha256@libssh.org" ];
|
||||||
passwordAuthentication = false;
|
|
||||||
kbdInteractiveAuthentication = false;
|
|
||||||
permitRootLogin = "no";
|
|
||||||
};
|
};
|
||||||
security.pam = mkDefault{
|
security.pam = lib.mkDefault {
|
||||||
enableSSHAgentAuth = true;
|
enableSSHAgentAuth = true;
|
||||||
services.sudo.sshAgentAuth = true;
|
services.sudo.sshAgentAuth = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue