From e8c8f1baf7d5e3cd5d44d03cfa753f4aad57770a Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Wed, 9 Mar 2022 13:03:32 +0000 Subject: [PATCH] Add ssh local config include --- home/default.nix | 5 ++++- home/git.nix | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/home/default.nix b/home/default.nix index 4a3e1af..d20a6b2 100644 --- a/home/default.nix +++ b/home/default.nix @@ -67,7 +67,10 @@ in { fzf.enable = true; - ssh.enable = true; + ssh = { + enable = true; + includes = [ "~/.ssh/config.local" ]; + }; }; } diff --git a/home/git.nix b/home/git.nix index c7cc174..2f1e048 100644 --- a/home/git.nix +++ b/home/git.nix @@ -38,7 +38,11 @@ init.defaultBranch = "main"; }; includes = [ - { path = "~/.gitconfig.local"; } + # Always include local gitconfig if it's there + { + path = "~/.gitconfig.local"; + } + # Include work gitconfig if we're somewhere in ~/work { path = "~/.gitconfig.work"; condition = "gitdir:~/work/";