summaryrefslogtreecommitdiff
path: root/nixos/features/server/core
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-09-02 10:48:21 -0400
committertriethyl <triethylammonium@pm.me>2025-09-02 10:48:21 -0400
commit31c316d19cd974bb81a5d6de62142ff24db1c78e (patch)
treecb941422c76cb8953830a8d58c8e14dca1a10319 /nixos/features/server/core
parent1c21018347aa277caba74e554cb8d1b1e7fc6bed (diff)
reorganized directory structure
Diffstat (limited to 'nixos/features/server/core')
-rw-r--r--nixos/features/server/core/ssh.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/features/server/core/ssh.nix b/nixos/features/server/core/ssh.nix
new file mode 100644
index 0000000..16fec48
--- /dev/null
+++ b/nixos/features/server/core/ssh.nix
@@ -0,0 +1,15 @@
+{ config, lib, ... }: let
+ cfg = config.features.server.ssh;
+in {
+ options.features.server.ssh.enable = lib.mkEnableOption "sshd";
+ config = lib.mkIf cfg.enable {
+ services.openssh = {
+ enable = true;
+ ports = [ 2200 ];
+ settings = {
+ PermitRootLogin = "no";
+ PasswordAuthentication = false;
+ };
+ };
+ };
+}