Skip to content

Commit

Permalink
proxy: use config.local.keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerg-L committed Sep 29, 2024
1 parent 26ae9e9 commit 89b41c5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions hosts/proxy/main.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
modulesPath,
pkgs,
lib,
...
config,
}:
{
local = {
Expand Down Expand Up @@ -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
;
};
};
};

Expand Down

0 comments on commit 89b41c5

Please sign in to comment.