about summary refs log tree commit diff
path: root/home/profiles/base/default.nix
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2025-01-19 09:11:28 +1000
committersefidel <contact@sefidel.net>2025-01-19 09:12:42 +1000
commit6be0dc1871a3d3cc4840f0f91c83bf4b094ef6df (patch)
treead4b9e15c7f508694005787b4ae83edd1eaaea30 /home/profiles/base/default.nix
parent909537bcd4e4dea531fd0041364a9eadcd40b583 (diff)
downloadnixrc-6be0dc1871a3d3cc4840f0f91c83bf4b094ef6df.tar.gz
nixrc-6be0dc1871a3d3cc4840f0f91c83bf4b094ef6df.zip
feat(home/base): use sudo-zsh-plugin on darwin
Diffstat (limited to 'home/profiles/base/default.nix')
-rw-r--r--home/profiles/base/default.nix14
1 files changed, 13 insertions, 1 deletions
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";
           }
         ];