fix ssh
This commit is contained in:
parent
fa10d09bff
commit
45b5c759c1
3 changed files with 7 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
||||||
"h002" = {
|
"h002" = {
|
||||||
identityFile = age.secrets.nix2h002.path;
|
identityFile = age.secrets.nix2h002.path;
|
||||||
hostname = "10.20.40.12";
|
hostname = "10.20.40.12";
|
||||||
user = "root";
|
user = "luser";
|
||||||
};
|
};
|
||||||
"t" = {
|
"t" = {
|
||||||
identityFile = age.secrets.nix2t.path;
|
identityFile = age.secrets.nix2t.path;
|
||||||
|
|
6
users/luser/by_hosts/nix_modules/ssh_authorized.nix
Normal file
6
users/luser/by_hosts/nix_modules/ssh_authorized.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ settings, ... }:
|
||||||
|
{
|
||||||
|
users.user.${settings.user.username}.openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJie9OPheWn/EZWfXJSZ3S0DnISqI3ToCmOqhX/Tkwby nix2h002"
|
||||||
|
];
|
||||||
|
}
|
0
users/luser/by_hosts/readme.md
Normal file
0
users/luser/by_hosts/readme.md
Normal file
Loading…
Add table
Add a link
Reference in a new issue