diff options
author | sefidel <contact@sefidel.net> | 2023-02-15 04:02:09 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-02-15 04:02:09 +0900 |
commit | f8d602464b299533806e72986a846d2d8025482e (patch) | |
tree | 561b3a6e3dd3e996f49a8b8f8bae4427766b85bb /nixos | |
parent | cd6a020e874f7334fb06bb80b41fc5d0e5191ec4 (diff) | |
download | nixrc-f8d602464b299533806e72986a846d2d8025482e.tar.gz nixrc-f8d602464b299533806e72986a846d2d8025482e.zip |
feat(nixos/kompakt): use direct path for SSH
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/kompakt/configuration.nix | 12 |
1 files changed, 11 insertions, 1 deletions
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" ]; |