sisyphus/nixos/modules/services/openssh/default.nix

18 lines
349 B
Nix
Raw Normal View History

2023-10-18 18:54:27 +02:00
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.services.openssh;
in {
options.sisyphus.services.openssh.enable = lib.mkEnableOption "OpenSSH";
config = lib.mkIf cfg.enable {
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
};
}