feat(ssh): Using SSH over the HTTPS port for GitHub, refactor ssh config (#187)

This commit is contained in:
Ryan Yin
2025-05-16 00:24:46 +08:00
committed by GitHub
parent 43721fba8a
commit b44d277072
12 changed files with 91 additions and 120 deletions

View File

@@ -39,7 +39,7 @@
# root's ssh key are mainly used for remote deployment
users.users.root = {
initialHashedPassword = config.users.users."${myvars.username}".initialHashedPassword;
openssh.authorizedKeys.keys = config.users.users."${myvars.username}".openssh.authorizedKeys.keys;
inherit (myvars) initialHashedPassword;
openssh.authorizedKeys.keys = myvars.mainSshAuthorizedKeys ++ myvars.secondaryAuthorizedKeys;
};
}