From 69a699912eb0ba26901007880d504f753f793e1e Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 25 Mar 2024 14:39:35 -0500 Subject: [PATCH] Let ssh config work in distrobox --- home/ssh.nix | 6 ++++++ hosts/jude/default.nix | 1 + 2 files changed, 7 insertions(+) diff --git a/home/ssh.nix b/home/ssh.nix index 0491074..6e50347 100644 --- a/home/ssh.nix +++ b/home/ssh.nix @@ -1,6 +1,12 @@ { lib, ... }: { + # Workaround to set the config value to user read-only + # This allows things like SSH in distrobox to read the config file just fine + home.file.".ssh/config" = { + target = ".ssh/config_source"; + onChange = ''cat ~/.ssh/config_source > ~/.ssh/config && chmod 400 ~/.ssh/config''; + }; programs.ssh = { enable = true; serverAliveInterval = 60; diff --git a/hosts/jude/default.nix b/hosts/jude/default.nix index 913ac6d..e6103d0 100644 --- a/hosts/jude/default.nix +++ b/hosts/jude/default.nix @@ -48,6 +48,7 @@ bind # For things like nslookup create_ssl darktable + distrobox expect gimp gparted