nixos-config/nixos/system/all/sshd.nix

20 lines
323 B
Nix
Raw Normal View History

2019-10-24 02:20:38 +02:00
{ config, pkgs, lib, ... }:
with lib;
{
# not needed anymore
# programs.ssh.hostKeyAlgorithms = [ "ssh-rsa" "ssh-ed25519" "ecdsa-sha2-nistp256" ];
services.custom.ssh = {
tools.enable = true;
sshd = {
2019-12-20 05:54:26 +01:00
enable = true;
rootKeyFiles = [ (toString ../../assets/ssh/card_rsa.pub) ];
2019-10-24 02:20:38 +02:00
};
};
}