aboutsummaryrefslogtreecommitdiff
path: root/profiles/core/ssh.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-09-12 13:11:20 -0700
committerFranck Cuny <franck@fcuny.net>2025-09-12 13:55:09 -0700
commit2fea36c19eb904125e2db5ba230b28d72dc881db (patch)
tree4233e16f0d50aec1cd5e4d3e5f5ed1b8728e380c /profiles/core/ssh.nix
parentmove common modules together and simplify imports (diff)
downloadinfra-2fea36c19eb904125e2db5ba230b28d72dc881db.tar.gz
start to refactor nixos modules
Diffstat (limited to 'profiles/core/ssh.nix')
-rw-r--r--profiles/core/ssh.nix21
1 files changed, 0 insertions, 21 deletions
diff --git a/profiles/core/ssh.nix b/profiles/core/ssh.nix
deleted file mode 100644
index b4c8772..0000000
--- a/profiles/core/ssh.nix
+++ /dev/null
@@ -1,21 +0,0 @@
-{ lib, ... }:
-{
- networking.firewall.allowedTCPPorts = [ 22 ];
-
- services.openssh = {
- enable = lib.mkDefault true;
- settings = {
- PasswordAuthentication = lib.mkForce false;
- KbdInteractiveAuthentication = lib.mkForce false;
-
- PermitRootLogin = lib.mkForce "prohibit-password";
- };
- openFirewall = lib.mkDefault true;
- hostKeys = [
- {
- path = "/etc/ssh/ssh_host_ed25519_key";
- type = "ed25519";
- }
- ];
- };
-}