diff --git a/home.nix b/home.nix index c5194a9..55a1182 100644 --- a/home.nix +++ b/home.nix @@ -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