From 77708aebd9a57ca8ca0f19f6f519e380497e341e Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Fri, 27 Oct 2023 19:43:55 -0400 Subject: [PATCH] fix: sudo alias overridden by kitty shell integration --- modules/nixos/system/doas.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/nixos/system/doas.nix b/modules/nixos/system/doas.nix index ff61572..e976cad 100644 --- a/modules/nixos/system/doas.nix +++ b/modules/nixos/system/doas.nix @@ -26,9 +26,14 @@ }; }; - # Alias sudo to doas for convenience - home-manager.users.${config.user}.programs.fish.shellAliases = { - sudo = "doas"; + home-manager.users.${config.user}.programs = { + + # Alias sudo to doas for convenience + fish.shellAliases = { sudo = "doas"; }; + + # Disable overriding our sudo alias with a TERMINFO alias + kitty.settings.shell_integration = "no-sudo"; + }; };