some reorganizing
This commit is contained in:
parent
df9e8ae8bf
commit
113e015135
182 changed files with 443 additions and 449 deletions
22
sys/profiles/core/ssh.nix
Normal file
22
sys/profiles/core/ssh.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{lib, ...}: {
|
||||
services.openssh = {
|
||||
enable = lib.mkDefault true;
|
||||
settings = {
|
||||
# Use only public keys
|
||||
PasswordAuthentication = lib.mkForce false;
|
||||
KbdInteractiveAuthentication = lib.mkForce false;
|
||||
|
||||
# root login is never welcome, except for remote builders
|
||||
PermitRootLogin = lib.mkForce "prohibit-password";
|
||||
};
|
||||
|
||||
startWhenNeeded = lib.mkDefault true;
|
||||
openFirewall = lib.mkDefault true;
|
||||
hostKeys = [
|
||||
{
|
||||
path = "/etc/ssh/ssh_host_ed25519_key";
|
||||
type = "ed25519";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue