13 lines
284 B
Nix
13 lines
284 B
Nix
{ lib, ... }: let
|
|
sshOptions = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = "no";
|
|
};
|
|
in {
|
|
services.openssh = {
|
|
enable = true;
|
|
extraConfig = sshOptions
|
|
|> lib.mapAttrsToList (name: value: "${name} ${value}")
|
|
|> lib.concatStringsSep "\n";
|
|
};
|
|
}
|