diff options
| author | triethyl <triethylammonium@pm.me> | 2025-09-02 21:21:46 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-09-02 21:21:46 -0400 |
| commit | efb1cda6d789e81cce0fafd753fb4d96eed6f9b7 (patch) | |
| tree | ca816fc9817e8c94d2c247ebb03357c867298621 /nixos/modules/homelab/core/ssh.nix | |
| parent | a6f9533790b9bfb73f1e531fcef6303642e38983 (diff) | |
homelab: working on homelab
Diffstat (limited to 'nixos/modules/homelab/core/ssh.nix')
| -rw-r--r-- | nixos/modules/homelab/core/ssh.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nixos/modules/homelab/core/ssh.nix b/nixos/modules/homelab/core/ssh.nix new file mode 100644 index 0000000..1b4b559 --- /dev/null +++ b/nixos/modules/homelab/core/ssh.nix @@ -0,0 +1,17 @@ +{config, lib, ...}: let + cfg = config.homelab.core.ssh; +in { + options.homelab.core.ssh = { + enable = lib.mkEnableOption "ssh"; + }; + config = lib.mkIf cfg.enable { + services.openssh = { + enable = true; + ports = [ 2200 ]; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + }; + }; + }; +} |
