diff --git a/test/configuration.nix b/test/configuration.nix index 8472001..148ff35 100644 --- a/test/configuration.nix +++ b/test/configuration.nix @@ -9,7 +9,7 @@ vaultix = { settings = { storageDir = ./secrets/renced/${config.networking.hostName}; - hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM4XC7dGxwY7VUPr4t+NtWL+c7pTl8g568jdv6aRbhDZ"; + hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEu8luSFCts3g367nlKBrxMdLyOy4Awfo5Rb397ef2AR elen@kaambl"; masterIdentities = [ # This indeed not safe since it has not password protection ; ./safekey.txt.pub @@ -42,6 +42,13 @@ }; }; }; + services.openssh.hostKeys = [ + { + path = ./ssh_key; + type = "ed25519"; + } + ]; + services.userborn.enable = true; imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; diff --git a/test/ssh_key b/test/ssh_key new file mode 100644 index 0000000..eb3e262 --- /dev/null +++ b/test/ssh_key @@ -0,0 +1,7 @@ +-----BEGIN OPENSSH PRIVATE KEY----- +b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW +QyNTUxOQAAACBLvJbkhQrbN4N+u55Sga8THS8jsuAMH6OUW9/e3n9gEQAAAJA2pUBZNqVA +WQAAAAtzc2gtZWQyNTUxOQAAACBLvJbkhQrbN4N+u55Sga8THS8jsuAMH6OUW9/e3n9gEQ +AAAECY8KpFz3qti09XPK9+gNe1hiBe/KF8tVI+se0e+e1QMEu8luSFCts3g367nlKBrxMd +LyOy4Awfo5Rb397ef2ARAAAAC2VsZW5Aa2FhbWJsAQI= +-----END OPENSSH PRIVATE KEY-----