From 6be0dc1871a3d3cc4840f0f91c83bf4b094ef6df Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 19 Jan 2025 09:11:28 +1000 Subject: feat(home/base): use sudo-zsh-plugin on darwin --- home/profiles/base/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix index cc6a9ce..a2e44c9 100644 --- a/home/profiles/base/default.nix +++ b/home/profiles/base/default.nix @@ -162,7 +162,7 @@ in }; } - { + (lib.mkIf pkgs.stdenv.isLinux { name = "doas-zsh-plugin"; src = pkgs.fetchFromGitHub { owner = "anatolykopyl"; @@ -171,6 +171,18 @@ in sha256 = "sha256-10rcF9cho9GuZCFQVIdFjvHCAlTLHNaLY4twxjT2jcE="; }; file = "doas.plugin.zsh"; + }) + + (lib.mkIf pkgs.stdenv.isDarwin { + name = "sudo-zsh-plugin"; + src = pkgs.oh-my-zsh.src; + file = "plugins/sudo/sudo.plugin.zsh"; + }) + + { + name = "zsh-vi-mode"; + src = pkgs.zsh-vi-mode; + file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh"; } ]; -- cgit 1.4.1