From 776dd620c8c87562980b9520c8730c3245fdf0b5 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Mon, 1 Jun 2026 21:52:21 -0400 Subject: ssh known hosts --- hosts/icon/configuration.nix | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'hosts/icon') diff --git a/hosts/icon/configuration.nix b/hosts/icon/configuration.nix index e8862cd..8261edf 100644 --- a/hosts/icon/configuration.nix +++ b/hosts/icon/configuration.nix @@ -9,6 +9,23 @@ ./../../vim.nix ]; + programs.ssh = { + knownHosts = { + desktop = { + extraHostNames = ["192.168.1.122"]; + publicKeyFile = ./../../pubkeys/desktop_ssh.pub; + }; + vps = { + extraHostNames = ["170.205.37.7"]; + publicKeyFile = ./../../pubkeys/vps_ssh.pub; + }; + github = { + extraHostNames = ["github.com"]; + publicKeyFile = ./../../pubkeys/github_ssh.pub; + }; + }; + }; + users.groups.git = {}; users.users.nginx.extraGroups = ["git"]; systemd.services.nginx.serviceConfig = { @@ -34,9 +51,7 @@ home = "/srv/git"; createHome = true; homeMode = "755"; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPfIZMlXeTEi0YoOq36WNo6xPoolqvoS77ygtKaySkoG admonty1@protonmail.com" - ]; + openssh.authorizedKeys.keyFiles = [../../pubkeys/desktop_ssh.pub]; }; }; -- cgit v1.3.1