mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-07 05:44:09 +09:00
fix
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.my.applications.openssh;
|
||||
in
|
||||
{
|
||||
options.my.applications.openssh = {
|
||||
enable = lib.mkEnableOption "OpenSSH server";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
PubkeyAuthentication = "yes";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user