From 4d3e4821745fabbde3126ca263ea8f206b29ea4d Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 8 Nov 2023 11:26:55 +0000 Subject: [PATCH] zsh: remove vteIntegration from rescue image --- hosts/by-name/rescue/default.nix | 1 + hosts/common/programs/zsh/default.nix | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/by-name/rescue/default.nix b/hosts/by-name/rescue/default.nix index 65bc949e..ac2029c9 100644 --- a/hosts/by-name/rescue/default.nix +++ b/hosts/by-name/rescue/default.nix @@ -9,6 +9,7 @@ sane.image.extraBootFiles = [ pkgs.bootpart-uefi-x86_64 ]; # sane.persist.enable = false; # TODO: disable (but run `nix flake check` to ensure it works!) sane.nixcache.enable = false; # don't want to be calling out to dead machines that we're *trying* to rescue + sane.zsh.guiIntegrations = false; # save on unused dependencies # docs: https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion system.stateVersion = "21.05"; diff --git a/hosts/common/programs/zsh/default.nix b/hosts/common/programs/zsh/default.nix index 5cb305d7..b0a103d4 100644 --- a/hosts/common/programs/zsh/default.nix +++ b/hosts/common/programs/zsh/default.nix @@ -27,6 +27,7 @@ in ./starship.nix ]; options = { + # TODO: port to sane.programs options sane.zsh = { showDeadlines = mkOption { type = types.bool; @@ -38,6 +39,14 @@ in default = true; description = "enable starship prompt"; }; + guiIntegrations = mkOption { + type = types.bool; + default = true; + description = '' + integrate with things like VTE, so that windowing systems can show the PWD in the title. + drags in gtk+3. + ''; + }; }; }; @@ -145,7 +154,7 @@ in ''; syntaxHighlighting.enable = true; - vteIntegration = true; + vteIntegration = cfg.guiIntegrations; }; # enable a command-not-found hook to show nix packages that might provide the binary typed.