1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

feat: add all my ssh config blocks

This commit is contained in:
oddlama 2023-09-22 21:43:15 +02:00
parent 55d6e6a102
commit 5c7f48dfce
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 3 additions and 21 deletions

Binary file not shown.

View file

@ -1,26 +1,8 @@
{
{config, ...}: {
home.file.".ssh/yubikey.pub".text = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA5Uq+CDy5Pmt3If5M6d8K/Q7HArU6sZ7sgoj3T521Wm";
programs.ssh = {
enable = true;
matchBlocks = {
"*" = {
identityFile = ["~/.ssh/yubikey.pub"];
identitiesOnly = true;
};
# TODO more from secrets nixosConfiguration.repo.secrets.global
meister = {
user = "root";
hostname = "meister.oddlama.org";
};
envoy = {
user = "root";
hostname = "94.130.104.236";
};
vm-base = {
user = "root";
proxyJump = "meister";
hostname = "172.16.0.01";
};
};
controlMaster = "yes";
inherit (config.userSecrets.ssh) matchBlocks;
};
}