mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
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";
|
|
};
|
|
}
|