From caaa77a642387d57d3501402327cf9ca574a1e3d Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 20 Jul 2024 12:21:50 -0400 Subject: [PATCH] users: authorize ssh keys with builtins.readFile to work around initrd ssh issues #49 --- userModules/default.nix | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/userModules/default.nix b/userModules/default.nix index 7cdef176..365ac812 100644 --- a/userModules/default.nix +++ b/userModules/default.nix @@ -8,18 +8,13 @@ self: { users = { mutableUsers = false; - users.root.openssh.authorizedKeys = { - keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG0HAmaMTAvrFrinB+b83c8hq6PyjmxRHg1IxR2GH6RN u0_a344@localhost" # termux on wallace - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGcJBb7+ZxkDdk06A0csNsbgT9kARUN185M8k3Lq7E/d u0_a336@localhost" # termux on winona - ]; - - keyFiles = [ - ../secrets/publicKeys/aly_lavaridge.pub - ../secrets/publicKeys/aly_mauville.pub - ../secrets/publicKeys/aly_petalburg.pub - ../secrets/publicKeys/aly_rustboro.pub - ]; - }; + users.root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG0HAmaMTAvrFrinB+b83c8hq6PyjmxRHg1IxR2GH6RN u0_a344@localhost" # termux on wallace + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGcJBb7+ZxkDdk06A0csNsbgT9kARUN185M8k3Lq7E/d u0_a336@localhost" # termux on winona + (builtins.readFile ../secrets/publicKeys/aly_lavaridge.pub) + (builtins.readFile ../secrets/publicKeys/aly_mauville.pub) + (builtins.readFile ../secrets/publicKeys/aly_petalburg.pub) + (builtins.readFile ../secrets/publicKeys/aly_rustboro.pub) + ]; }; }