refactor: migrate ssh auth keys & hashed password into vars

This commit is contained in:
Ryan Yin
2024-08-16 14:40:06 +08:00
parent 6c8e8111c6
commit eb83e88267
3 changed files with 21 additions and 6 deletions

View File

@@ -74,11 +74,7 @@
# ```
# 2. Never leave the device and never sent over the network.
# 2. Or just use hardware security keys like Yubikey/CanoKey.
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIKlN+Q/GxvwxDX/OAjJHaNFEznEN4Tw4E4TwqQu/eD6 ryan@idols-ai"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPoa9uEI/gR5+klqTQwvCgD6CD5vT5iD9YCNx2xNrH3B ryan@fern"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPwZ9MdotnyhxIJrI4gmVshExHiZOx+FGFhcW7BaYkfR ryan@harmonica"
];
openssh.authorizedKeys.keys = myvars.sshAuthorizedKeys;
};
nix.settings = {