mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 08:46:52 +01:00
18 lines
403 B
Nix
18 lines
403 B
Nix
{ config, lib, pkgs, self, ... }:
|
|
|
|
let cfg = config.jopejoe1.ssh;
|
|
in {
|
|
options.jopejoe1.ssh = { enable = lib.mkEnableOption "Enable ssh"; };
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.openssh = {
|
|
enable = true;
|
|
banner = "Hackers are in Your System!!!\n";
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
PermitRootLogin = "prohibit-password";
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|