mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
split ssh away from nix
This commit is contained in:
parent
08e8414488
commit
dff0d40777
9 changed files with 26 additions and 13 deletions
18
modules/ssh/default.nix
Normal file
18
modules/ssh/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ 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!!!";
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "prohibit-password";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue