Skip to content

Commit

Permalink
do some ssh config
Browse files Browse the repository at this point in the history
  • Loading branch information
arichtman committed Dec 11, 2024
1 parent cdcd9b9 commit 0e63b61
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions modules/home/personal-machine/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ in
config = mkIf cfg.enabled {
programs.ssh.enable = true;
programs.ssh.matchBlocks = {
proxmox = {
hostname = "proxmox.internal";
"proxmox.*" = {
user = "root";
};
"opnsense.*" = {
user = "root";
};
github = {
Expand All @@ -42,11 +44,11 @@ in
user = "chanya";
hostname = "ap.internal";
};
"*.internal" = {
user = "nixos";
os = {
hostname = "opnsense.local";
};
"*.local" = {
user = "nixos";
pm = {
hostname = "proxmox.local";
};
fc = {
hostname = "fat-controller.local";
Expand Down

0 comments on commit 0e63b61

Please sign in to comment.