mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: add all my ssh config blocks
This commit is contained in:
parent
55d6e6a102
commit
5c7f48dfce
2 changed files with 3 additions and 21 deletions
Binary file not shown.
|
@ -1,26 +1,8 @@
|
||||||
{
|
{config, ...}: {
|
||||||
home.file.".ssh/yubikey.pub".text = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA5Uq+CDy5Pmt3If5M6d8K/Q7HArU6sZ7sgoj3T521Wm";
|
home.file.".ssh/yubikey.pub".text = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA5Uq+CDy5Pmt3If5M6d8K/Q7HArU6sZ7sgoj3T521Wm";
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
matchBlocks = {
|
controlMaster = "yes";
|
||||||
"*" = {
|
inherit (config.userSecrets.ssh) 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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue