From f8d602464b299533806e72986a846d2d8025482e Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 15 Feb 2023 04:02:09 +0900 Subject: feat(nixos/kompakt): use direct path for SSH --- nixos/kompakt/configuration.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nixos/kompakt/configuration.nix b/nixos/kompakt/configuration.nix index 4d4c007..bc033f7 100644 --- a/nixos/kompakt/configuration.nix +++ b/nixos/kompakt/configuration.nix @@ -127,13 +127,23 @@ }; services.openssh.enable = true; + services.openssh.hostKeys = [ + { + path = "/persist/ssh/ssh_host_ed25519_key"; + type = "ed25519"; + } + { + path = "/persist/ssh/ssh_host_rsa_key"; + type = "rsa"; + bits = 4096; + } + ]; environment.systemPackages = with pkgs; [ git ]; environment.persistence."/persist".directories = [ - "/etc/ssh" "/etc/nixos" ]; -- cgit 1.4.1