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 let
nurpkgs = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; }; nurpkgs = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; };
in in
@ -97,6 +97,41 @@ in
enable = true; enable = true;
enableBashIntegration = 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 # Let home-manager manage the X session