improved ssh

This commit is contained in:
Morten Olsen
2025-12-15 19:31:02 +01:00
parent 6e2564c7f7
commit a632dedc86
3 changed files with 43 additions and 3 deletions

View File

@@ -55,7 +55,7 @@
enableGiteaPrivate = true;
# Work-specific hosts disabled on personal machine
enableGitHubZeronorth = false;
enableCoder = false;
enableCoder = true;
};
# ==========================================================================

View File

@@ -34,6 +34,10 @@
users.users.${username} = {
name = username;
home = "/Users/${username}";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFaIAP/ZJ7+7jeR44e1yIJjfQAB6MN351LDKJAXVF62P"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILAzuPy7D/54GxMq9Zhz0CUjaDnEQ6RkQ/yqVYl7U55k"
];
};
# System-level programs

View File

@@ -120,6 +120,42 @@ in {
identitiesOnly = true;
};
# Docker server
"docker.host" = {
hostname = "docker.olsen.cloud";
user = "alice";
port = 22;
identityFile = cfg.githubPrivateKeyPath;
identitiesOnly = true;
};
# NAS server
"nas.host" = {
hostname = "192.168.20.106";
user = "morten";
port = 22;
identityFile = cfg.githubPrivateKeyPath;
identitiesOnly = true;
};
# Private MacBook
"macbook.host" = {
hostname = "192.168.3.9";
user = "morten";
port = 22;
identityFile = cfg.githubPrivateKeyPath;
identitiesOnly = true;
};
# ZN MacBook
"zn.host" = {
hostname = "192.168.3.3";
user = "morten";
port = 22;
identityFile = cfg.githubPrivateKeyPath;
identitiesOnly = true;
};
# Coder hosts (for remote development environments)
"coder.*" = mkIf cfg.enableCoder {
extraOptions = {