nix-configs/nixos-modules/services/ssh.nix
Philipp Hochkamp 2c860c57aa other kernel
2022-03-26 21:13:34 +01:00

12 lines
333 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.ragon.services.ssh;
in
{
options.ragon.services.ssh.enable = lib.mkEnableOption "Enables sshd";
config = lib.mkIf cfg.enable {
services.openssh.permitRootLogin = "without-password";
services.openssh.enable = true;
services.openssh.passwordAuthentication = false;
};
}