diff --git a/home-manager/modules/ssh/default.nix b/home-manager/modules/ssh/default.nix index 2d8b574..c9e86ae 100644 --- a/home-manager/modules/ssh/default.nix +++ b/home-manager/modules/ssh/default.nix @@ -5,6 +5,8 @@ }: with lib; let cfg = config.eboskma.programs.ssh; + personalKey = "~/.ssh/id_ed25519_sk"; + horusKey = "~/.ssh/id_ed25519_sk_horus"; in { options.eboskma.programs.ssh = { enable = mkEnableOption "activate ssh"; }; @@ -15,7 +17,7 @@ in hashKnownHosts = true; matchBlocks = { "*" = { - identityFile = "~/.ssh/id_ed25519_sk"; + identityFile = personalKey; identitiesOnly = true; extraOptions = { Ciphers = "chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr"; @@ -70,6 +72,7 @@ in horus-vpn = { hostname = "192.168.4.202"; + identityFile = horusKey; }; "repohost.bedum.horus.nu" = {