From 220677a247ba046390587fda6441de4346da9ac1 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sun, 24 Sep 2023 22:25:02 +0200 Subject: [PATCH] add ssh config closes #14 --- home.nix | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) 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