From 8b184727e2d5659331447bd2413ff4bd553a6cf0 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Mon, 17 Feb 2025 20:40:41 -0800 Subject: [PATCH] feat(nixos): OpenSSH --- modules/nixos/services/openssh/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/nixos/services/openssh/default.nix diff --git a/modules/nixos/services/openssh/default.nix b/modules/nixos/services/openssh/default.nix new file mode 100644 index 0000000..5452421 --- /dev/null +++ b/modules/nixos/services/openssh/default.nix @@ -0,0 +1,18 @@ +{ + lib, + config, + ... +}: let + cfg = config.marleyos.services.openssh; +in { + options.marleyos.services.openssh.enable = lib.mkEnableOption "openssh"; + + config = lib.mkIf cfg.enable { + services.openssh = { + enable = true; + settings = { + PermitRootLogin = "no"; + }; + }; + }; +}