[shared] Added ssh config for desktop. Justfile to get pub ssh

This commit is contained in:
2025-05-15 21:14:05 +02:00
parent 48ff2cdfd2
commit 55f7a37aaa
4 changed files with 19 additions and 1 deletions

View File

@ -1,6 +1,7 @@
{
imports = [
./sops.nix
./ssh.nix
./yubikey.nix
];

View File

@ -0,0 +1,13 @@
# /nix/store/<hash>/etc/ssh/ssh_config
{
programs.ssh.knownHosts =
let
domain = "dns.martials.no";
in
{
desktop = {
extraHostNames = [ "desktop.${domain}" ];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMSzXyTuQyTrWsfORQbvgrqt/33+hfSUDXeMg6D1T2wz";
};
};
}