summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-06-07 09:32:38 +0200
committerAlan Pearce2023-06-07 09:32:38 +0200
commit0e163fc1e986da8cabb65d0ddbe23ac8ca8cfc36 (patch)
tree7405c945343c6befa9828fac59e5dd551fa03654 /user
parentfb91cda1b1f8fe904001b8814b160b8431b8f59c (diff)
downloadnixfiles-0e163fc1e986da8cabb65d0ddbe23ac8ca8cfc36.tar.lz
nixfiles-0e163fc1e986da8cabb65d0ddbe23ac8ca8cfc36.tar.zst
nixfiles-0e163fc1e986da8cabb65d0ddbe23ac8ca8cfc36.zip
zsh: fix powerlevel10k init
Diffstat (limited to 'user')
-rw-r--r--user/settings/zsh.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 6cec6e58..4022309a 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -28,11 +28,6 @@ let
       '';
     };
   };
-  powerlevel = (mkZshPlugin {
-    name = "zsh-powerlevel10k";
-    src = pkgs.zsh-powerlevel10k.src;
-    file = "powerlevel10k.zsh-theme";
-  }).src;
 in
 {
   home.packages = with pkgs; [
@@ -93,6 +88,11 @@ in
           sha256 = "08bjm1dd2mpv8rk8x6yvm6gj490rgimmiq7ln4jr5hik2k3mm82r";
         };
       }
+      {
+        name = "zsh-powerlevel10k";
+        src = pkgs.zsh-powerlevel10k.src;
+        file = "dummy";
+      }
     ];
 
     shellAliases = {
@@ -215,8 +215,7 @@ in
           source "${config.xdg.cacheHome}/p10k-instant-prompt-''${(%):-%n}.zsh"
         fi
         typeset -g POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
-        fpath+=${powerlevel}
-        source ${powerlevel}/powerlevel10k.zsh-theme
+        source $ZDOTDIR/plugins/zsh-powerlevel10k/powerlevel10k.zsh-theme
       fi
     '';
     initExtra =