aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-01-23 17:28:19 -0600
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-01-23 17:28:19 -0600
commit1efe7e2d15e2b10029d7893a63f142892a791e65 (patch)
tree8984ad031e639b53d1154281ef8a340b3c69023d
parent3d9b20723ab8b5d61d8db540c34d18c59bf13fa5 (diff)
ssh
-rw-r--r--hosts/ganymede/config.nix15
-rw-r--r--modules/services/nixos/ssh.nix9
2 files changed, 7 insertions, 17 deletions
diff --git a/hosts/ganymede/config.nix b/hosts/ganymede/config.nix
index 4a412b4..e44e4a8 100644
--- a/hosts/ganymede/config.nix
+++ b/hosts/ganymede/config.nix
@@ -9,11 +9,6 @@
};
"caddy-env".file = ./caddy-env.age;
-
- "wg-key" = {
- file = ./ganymede-wg-key.age;
- owner = "systemd-network";
- };
};
terminal = {
@@ -40,10 +35,6 @@
gateway = "192.168.50.1";
};
};
- # tailscale = {
- # enable = true;
- # tailnet = "collinux.tailnet";
- # };
sshd = {
enable = true;
bind_host = "0.0.0.0";
@@ -61,12 +52,6 @@
bind_host = "127.0.0.1";
root_url = "ganymede.collinux.tailnet:8010";
};
-
- # headscale = {
- # enable = true;
- # root_url = "headscale.williamsfam.us.com";
- # caddy.enable = true;
- # };
};
};
};
diff --git a/modules/services/nixos/ssh.nix b/modules/services/nixos/ssh.nix
index cfe7883..7868a31 100644
--- a/modules/services/nixos/ssh.nix
+++ b/modules/services/nixos/ssh.nix
@@ -8,7 +8,6 @@ in {
config = lib.mkIf cfg.enable {
services.openssh = {
enable = true;
- openFirewall = false;
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
@@ -24,9 +23,15 @@ in {
];
settings = {
- PermitRootLogin = "prohibit-password";
+ PermitRootLogin = "prohibit-password"; # deploy-rs uses root account
PasswordAuthentication = false;
};
+
+ knownHosts = {
+ "mercury".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIQtMAgPdWwrOzlZT/lEIRQZ+ajhafG9AEJCrF2/bsmN";
+ "jupiter".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPB7feUHl5qoD5zF9AMOV2meViA+wZYdVvbVjPkggZf8";
+ "ganymede".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINlr+53UmlGVP1blkdNl6NFqn1w2umFJyjH1EVUPKIy9";
+ };
};
systemd.services."openssh" = lib.mkIf config.collinux.services.networking.networkd.enable {