Kieran's opinionated (and probably slightly dumb) nix config

fix: add nix-profile to PATH in zmx SSH RemoteCommand

Allows zmx to be found either in the profile or system PATH

💘 Generated with Crush

Assisted-by: Claude Sonnet 4 via Crush <crush@charm.land>

dunkirk.sh a2dc8288 cc6ab9bd

verified
Changed files
+2 -2
modules
home
apps
+2 -2
modules/home/apps/ssh.nix
···
extraOptions = hostCfg.extraOptions // (
if hostCfg.zmx then
{
-
RemoteCommand = "zmx attach %n";
+
RemoteCommand = "export PATH=$HOME/.nix-profile/bin:$PATH; zmx attach %n";
RequestTTY = "yes";
ControlPath = "~/.ssh/cm-%r@%h:%p";
ControlMaster = "auto";
···
port = mkIf (patternHost.port or null != null) patternHost.port;
user = mkIf (patternHost.user or null != null) patternHost.user;
extraOptions = {
-
RemoteCommand = "zmx attach %k";
+
RemoteCommand = "export PATH=$HOME/.nix-profile/bin:$PATH; zmx attach %k";
RequestTTY = "yes";
ControlPath = "~/.ssh/cm-%r@%h:%p";
ControlMaster = "auto";