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