summary refs log tree commit diff
path: root/nixos/tests/openssh.nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-02-28 16:55:00 -0500
committerShea Levy <shea@shealevy.com>2018-02-28 16:55:00 -0500
commit4de72b90f36641c81b19b44b4de0b63cabbf83aa (patch)
tree05a99e12433a8993944435ae5d566e5cbead3a83 /nixos/tests/openssh.nix
parentedf0a762117c589eece24b5cbcef11f0ebcc9011 (diff)
downloadnixpkgs-4de72b90f36641c81b19b44b4de0b63cabbf83aa.tar
nixpkgs-4de72b90f36641c81b19b44b4de0b63cabbf83aa.tar.gz
nixpkgs-4de72b90f36641c81b19b44b4de0b63cabbf83aa.tar.bz2
nixpkgs-4de72b90f36641c81b19b44b4de0b63cabbf83aa.tar.lz
nixpkgs-4de72b90f36641c81b19b44b4de0b63cabbf83aa.tar.xz
nixpkgs-4de72b90f36641c81b19b44b4de0b63cabbf83aa.tar.zst
nixpkgs-4de72b90f36641c81b19b44b4de0b63cabbf83aa.zip
nixos: nix.sshServe: Support ssh-ng.
Diffstat (limited to 'nixos/tests/openssh.nix')
-rw-r--r--nixos/tests/openssh.nix17
1 files changed, 2 insertions, 15 deletions
diff --git a/nixos/tests/openssh.nix b/nixos/tests/openssh.nix
index 29154499688..b2d254e9d9d 100644
--- a/nixos/tests/openssh.nix
+++ b/nixos/tests/openssh.nix
@@ -1,20 +1,7 @@
 import ./make-test.nix ({ pkgs, ... }:
 
-let
-  snakeOilPrivateKey = pkgs.writeText "privkey.snakeoil" ''
-    -----BEGIN EC PRIVATE KEY-----
-    MHcCAQEEIHQf/khLvYrQ8IOika5yqtWvI0oquHlpRLTZiJy5dRJmoAoGCCqGSM49
-    AwEHoUQDQgAEKF0DYGbBwbj06tA3fd/+yP44cvmwmHBWXZCKbS+RQlAKvLXMWkpN
-    r1lwMyJZoSGgBHoUahoYjTh9/sJL7XLJtA==
-    -----END EC PRIVATE KEY-----
-  '';
-
-  snakeOilPublicKey = pkgs.lib.concatStrings [
-    "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHA"
-    "yNTYAAABBBChdA2BmwcG49OrQN33f/sj+OHL5sJhwVl2Qim0vkUJQCry1zFpKTa"
-    "9ZcDMiWaEhoAR6FGoaGI04ff7CS+1yybQ= sakeoil"
-  ];
-
+let inherit (import ./ssh-keys.nix pkgs)
+      snakeOilPrivateKey snakeOilPublicKey;
 in {
   name = "openssh";
   meta = with pkgs.stdenv.lib.maintainers; {