[ssh] Move to actual module

This commit is contained in:
Tibo De Peuter 2023-10-18 18:54:27 +02:00
parent 197fcdbb81
commit 37b3968722
10 changed files with 100 additions and 78 deletions

View file

@ -0,0 +1,17 @@
{ 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";
};
};
};
}