move nixos modules to nixos-modules

This commit is contained in:
jopejoe1 2024-07-15 17:12:20 +02:00
parent 7394c5f317
commit 611796f02e
29 changed files with 225 additions and 7 deletions

View file

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