lol

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

+8 -10
+8 -10
nixos/tests/initrd-network-ssh/default.nix
··· 1 - import ../make-test-python.nix ({ lib, ... }: 1 + import ../make-test-python.nix ({ lib, pkgs, ... }: 2 2 3 3 { 4 4 name = "initrd-network-ssh"; 5 - meta = with lib.maintainers; { 6 - maintainers = [ willibutz emily ]; 7 - }; 5 + meta.maintainers = with lib.maintainers; [ willibutz emily ]; 8 6 9 - nodes = with lib; { 7 + nodes = { 10 8 server = 11 9 { config, ... }: 12 10 { ··· 17 15 enable = true; 18 16 ssh = { 19 17 enable = true; 20 - authorizedKeys = [ (readFile ./id_ed25519.pub) ]; 18 + authorizedKeys = [ (lib.readFile ./id_ed25519.pub) ]; 21 19 port = 22; 22 20 hostKeys = [ ./ssh_host_ed25519_key ]; 23 21 }; ··· 37 35 { 38 36 environment.etc = { 39 37 knownHosts = { 40 - text = concatStrings [ 38 + text = lib.concatStrings [ 41 39 "server," 42 - "${toString (head (splitString " " ( 43 - toString (elemAt (splitString "\n" config.networking.extraHosts) 2) 40 + "${toString (lib.head (lib.splitString " " ( 41 + toString (lib.elemAt (lib.splitString "\n" config.networking.extraHosts) 2) 44 42 )))} " 45 - "${readFile ./ssh_host_ed25519_key.pub}" 43 + "${lib.readFile ./ssh_host_ed25519_key.pub}" 46 44 ]; 47 45 }; 48 46 sshKey = {