more ssh secrets
This commit is contained in:
parent
45b5c759c1
commit
c19a161764
11 changed files with 100 additions and 0 deletions
|
@ -21,6 +21,16 @@
|
|||
hostname = "10.20.40.12";
|
||||
user = "luser";
|
||||
};
|
||||
"joe" = {
|
||||
identityFile = age.secrets.nix2joe.path;
|
||||
hostname = "10.20.40.2";
|
||||
user = "josh";
|
||||
};
|
||||
"gpdPocket3" = {
|
||||
identityFile = age.secrets.nix2gpdPocket3.path;
|
||||
hostname = "10.20.40.22"; # TODO onboard ot nebula network
|
||||
user = "josh";
|
||||
};
|
||||
"t" = {
|
||||
identityFile = age.secrets.nix2t.path;
|
||||
hostname = "10.20.40.4"; # TODO get these from flake.nix hosts?
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{ settings, ... }:
|
||||
{
|
||||
users.user.${settings.user.username}.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDa0MUnXwRzHPTDakjzLTmye2GTFbRno+KVs0DSeIPb7 nix2gpdpocket3"
|
||||
];
|
||||
}
|
6
users/josh/by_hosts/joe/nix_modules/ssh_authorized.nix
Normal file
6
users/josh/by_hosts/joe/nix_modules/ssh_authorized.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ settings, ... }:
|
||||
{
|
||||
users.user.${settings.user.username}.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINoBKfj+2SAlTxgdK1jYMFYoTTthX9jvfC+gko1Wlr4L nix2joe"
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue