improved ssh
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
enableGiteaPrivate = true;
|
enableGiteaPrivate = true;
|
||||||
# Work-specific hosts disabled on personal machine
|
# Work-specific hosts disabled on personal machine
|
||||||
enableGitHubZeronorth = false;
|
enableGitHubZeronorth = false;
|
||||||
enableCoder = false;
|
enableCoder = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# ==========================================================================
|
# ==========================================================================
|
||||||
|
|||||||
@@ -34,6 +34,10 @@
|
|||||||
users.users.${username} = {
|
users.users.${username} = {
|
||||||
name = username;
|
name = username;
|
||||||
home = "/Users/${username}";
|
home = "/Users/${username}";
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFaIAP/ZJ7+7jeR44e1yIJjfQAB6MN351LDKJAXVF62P"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILAzuPy7D/54GxMq9Zhz0CUjaDnEQ6RkQ/yqVYl7U55k"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# System-level programs
|
# System-level programs
|
||||||
@@ -53,4 +57,4 @@
|
|||||||
# Used for backwards compatibility, read the changelog before changing.
|
# Used for backwards compatibility, read the changelog before changing.
|
||||||
# $ darwin-rebuild changelog
|
# $ darwin-rebuild changelog
|
||||||
system.stateVersion = 5;
|
system.stateVersion = 5;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,6 +119,42 @@ in {
|
|||||||
identityFile = cfg.githubZeronorthKeyPath;
|
identityFile = cfg.githubZeronorthKeyPath;
|
||||||
identitiesOnly = true;
|
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 hosts (for remote development environments)
|
||||||
"coder.*" = mkIf cfg.enableCoder {
|
"coder.*" = mkIf cfg.enableCoder {
|
||||||
@@ -149,4 +185,4 @@ in {
|
|||||||
# These public key files are used for IdentityFile references.
|
# These public key files are used for IdentityFile references.
|
||||||
# The public keys tell SSH which key to request from the 1Password agent.
|
# The public keys tell SSH which key to request from the 1Password agent.
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user