diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-12-22 11:08:57 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-12-22 11:08:57 -0600 |
| commit | 87763bcc7d13e92b96c5743507795fba4444eabe (patch) | |
| tree | 1c394be7bbc358bc8dc3ad119f6ebf150ff0f974 /modules/services/nixos/ssh.nix | |
| parent | 4bbaf8fff29ea4f50771025327cb16ed8995aab7 (diff) | |
give up on agenix; set up remote deploys (not currently working)
Diffstat (limited to 'modules/services/nixos/ssh.nix')
| -rw-r--r-- | modules/services/nixos/ssh.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/services/nixos/ssh.nix b/modules/services/nixos/ssh.nix index 6db41bf..bf1aefe 100644 --- a/modules/services/nixos/ssh.nix +++ b/modules/services/nixos/ssh.nix @@ -1,5 +1,4 @@ { - pkgs, config, lib, ... @@ -9,8 +8,14 @@ in lib.mkIf cfg.enable { services.openssh = { enable = true; + hostKeys = [ + { + path = "/etc/ssh/ssh_host_ed25519_key"; + type = "ed25519"; + } + ]; settings = { - PermitRootLogin = "no"; + PermitRootLogin = "prohibit-password"; PasswordAuthentication = false; }; }; |
