From 89b41c57bc64585455a07ed304ea057e58702e16 Mon Sep 17 00:00:00 2001 From: Gerg-L Date: Sat, 28 Sep 2024 21:57:07 -0400 Subject: [PATCH] proxy: use config.local.keys --- hosts/proxy/main.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hosts/proxy/main.nix b/hosts/proxy/main.nix index f08d75b..b17dc0b 100644 --- a/hosts/proxy/main.nix +++ b/hosts/proxy/main.nix @@ -2,7 +2,7 @@ modulesPath, pkgs, lib, - ... + config, }: { local = { @@ -30,11 +30,13 @@ mutableUsers = false; users.root = { hashedPassword = "!"; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILZKIp3iObuxEUPx1dsMiN3vyMaMQb0N1gKJY78TtRxd" - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILpYY2uw0OH1Re+3BkYFlxn0O/D8ryqByJB/ljefooNc" - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJWbwkFJmRBgyWyWU+w3ksZ+KuFw9uXJN3PwqqE7Z/i8" - ]; + openssh.authorizedKeys.keys = builtins.attrValues { + inherit (config.local.keys) + gerg_gerg-phone + gerg_gerg-windows + gerg_gerg-desktop + ; + }; }; };