add ssh config

closes #14
This commit is contained in:
Pim Kunis 2023-09-24 22:25:02 +02:00
parent 17266b7ce6
commit 220677a247

View file

@ -1,4 +1,4 @@
{ pkgs, ... }@args:
{ pkgs, lib, ... }@args:
let
nurpkgs = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; };
in
@ -97,6 +97,41 @@ in
enable = true;
enableBashIntegration = true;
};
ssh = {
enable = true;
matchBlocks = {
"github.com" = lib.hm.dag.entryBefore [ "*" ] {
hostname = "github.com";
user = "pizzapim";
identitiesOnly = true;
};
"lewis" = lib.hm.dag.entryBefore [ "*" ] {
hostname = "lewis.hyp";
};
"atlas" = lib.hm.dag.entryBefore [ "*" ] {
hostname = "atlas.hyp";
};
"jefke" = lib.hm.dag.entryBefore [ "*" ] {
hostname = "jefke.hyp";
};
"hermes" = lib.hm.dag.entryBefore [ "*" ] {
hostname = "hermes.dmz";
};
"maestro" = lib.hm.dag.entryBefore [ "*" ] {
hostname = "maestro.dmz";
};
"bancomart" = lib.hm.dag.entryBefore [ "*" ] {
hostname = "bancomart.dmz";
};
"handjecontantje" = lib.hm.dag.entryBefore [ "*" ] {
hostname = "handjecontantje.dmz";
};
"*" = {
user = "root";
};
};
};
};
# Let home-manager manage the X session