diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-12-20 16:47:15 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-12-20 16:47:15 -0600 |
| commit | 4bbaf8fff29ea4f50771025327cb16ed8995aab7 (patch) | |
| tree | e2f2a659760dc7ac1c1b73ed32fc65cb7d94e569 /modules/services/nixos/ssh.nix | |
| parent | 817e2429636d706ba6ee48ac0a276f54bfc614e5 (diff) | |
work on agenix
Diffstat (limited to 'modules/services/nixos/ssh.nix')
| -rw-r--r-- | modules/services/nixos/ssh.nix | 17 |
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; + }; + }; + } |
