diff --git a/hosts/homes/ambroisie@bazin/default.nix b/hosts/homes/ambroisie@bazin/default.nix index 0982e12..6878e00 100644 --- a/hosts/homes/ambroisie@bazin/default.nix +++ b/hosts/homes/ambroisie@bazin/default.nix @@ -25,6 +25,12 @@ zsh = { notify = { enable = true; + + ssh = { + enable = true; + + useOsc777 = false; # notify-send is proxied to the ChromeOS layer + }; }; }; }; diff --git a/modules/home/zsh/default.nix b/modules/home/zsh/default.nix index 549ada9..d983116 100644 --- a/modules/home/zsh/default.nix +++ b/modules/home/zsh/default.nix @@ -19,7 +19,11 @@ in notify = { enable = mkEnableOption "zsh-done notification"; - enableSsh = mkEnableOption "notify through SSH connections"; + ssh = { + enable = mkEnableOption "notify through SSH/non-graphical connections"; + + useOsc777 = lib.my.mkDisableOption "use OSC-777 for notifications"; + }; }; }; @@ -114,11 +118,11 @@ in # don't use `mkIf` localVariables = { } # Enable `zsh-done` through SSH, if configured - // lib.optionalAttrs cfg.notify.enableSsh { DONE_ALLOW_NONGRAPHICAL = 1; } + // lib.optionalAttrs cfg.notify.ssh.enable { DONE_ALLOW_NONGRAPHICAL = 1; } ; # Use OSC-777 to send the notification through SSH - initExtra = lib.mkIf cfg.notify.enableSsh '' + initExtra = lib.mkIf cfg.notify.ssh.useOsc777 '' done_send_notification() { local exit_status="$1" local title="$2"