nixos/tests/initrd-network-ssh/default.nix: remove overuses of `with`

Changed files
+8 -10
nixos
tests
initrd-network-ssh
+8 -10
nixos/tests/initrd-network-ssh/default.nix
···
-
import ../make-test-python.nix ({ lib, ... }:
{
name = "initrd-network-ssh";
-
meta = with lib.maintainers; {
-
maintainers = [ willibutz emily ];
-
};
-
nodes = with lib; {
server =
{ config, ... }:
{
···
enable = true;
ssh = {
enable = true;
-
authorizedKeys = [ (readFile ./id_ed25519.pub) ];
port = 22;
hostKeys = [ ./ssh_host_ed25519_key ];
};
···
{
environment.etc = {
knownHosts = {
-
text = concatStrings [
"server,"
-
"${toString (head (splitString " " (
-
toString (elemAt (splitString "\n" config.networking.extraHosts) 2)
)))} "
-
"${readFile ./ssh_host_ed25519_key.pub}"
];
};
sshKey = {
···
+
import ../make-test-python.nix ({ lib, pkgs, ... }:
{
name = "initrd-network-ssh";
+
meta.maintainers = with lib.maintainers; [ willibutz emily ];
+
nodes = {
server =
{ config, ... }:
{
···
enable = true;
ssh = {
enable = true;
+
authorizedKeys = [ (lib.readFile ./id_ed25519.pub) ];
port = 22;
hostKeys = [ ./ssh_host_ed25519_key ];
};
···
{
environment.etc = {
knownHosts = {
+
text = lib.concatStrings [
"server,"
+
"${toString (lib.head (lib.splitString " " (
+
toString (lib.elemAt (lib.splitString "\n" config.networking.extraHosts) 2)
)))} "
+
"${lib.readFile ./ssh_host_ed25519_key.pub}"
];
};
sshKey = {