aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/ssh.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services/nixos/ssh.nix')
-rw-r--r--modules/services/nixos/ssh.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/services/nixos/ssh.nix b/modules/services/nixos/ssh.nix
new file mode 100644
index 0000000..6db41bf
--- /dev/null
+++ b/modules/services/nixos/ssh.nix
@@ -0,0 +1,17 @@
+{
+ pkgs,
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.collinux.services.networking.sshd;
+in
+ lib.mkIf cfg.enable {
+ services.openssh = {
+ enable = true;
+ settings = {
+ PermitRootLogin = "no";
+ PasswordAuthentication = false;
+ };
+ };
+ }