about summary refs log tree commit diff
path: root/hosts/home.nix
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-07-23 22:07:56 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-07-23 22:07:56 +0200
commita15afc49c1a64fd283d63773f7bab18a5f5f701b (patch)
tree3b352b774ba2962df93625a53cc687628ee4816d /hosts/home.nix
parentUpdate PARTITIONING guide (diff)
downloadnixos-config-a15afc49c1a64fd283d63773f7bab18a5f5f701b.tar.gz
nixos-config-a15afc49c1a64fd283d63773f7bab18a5f5f701b.tar.bz2
nixos-config-a15afc49c1a64fd283d63773f7bab18a5f5f701b.zip
ZSH: Install plugins deterministically
Diffstat (limited to 'hosts/home.nix')
-rw-r--r--hosts/home.nix60
1 files changed, 44 insertions, 16 deletions
diff --git a/hosts/home.nix b/hosts/home.nix
index e44db15..783584d 100644
--- a/hosts/home.nix
+++ b/hosts/home.nix
@@ -146,22 +146,50 @@ in
 
     zsh = {
       enable = true;
-      zplug = {
-        enable = true;
-        plugins = [
-          {
-            name = "zsh-users/zsh-autosuggestions";
-          } # Simple plugin installation
-          {
-            name = "zsh-users/zsh-syntax-highlighting";
-          } # Simple plugin installation
-          { name = "chrissicool/zsh-256color"; } # Simple plugin installation
-          {
-            name = "fsegouin/oh-my-zsh-agnoster-mod-theme";
-            tags = [ "as:theme" "depth:1" ];
-          } # Installations with additional options. For the list of options, please refer to Zplug README.
-        ];
-      };
+
+      oh-my-zsh.enable = true;
+
+      plugins = [
+        {
+          # will source zsh-autosuggestions.plugin.zsh
+          name = "zsh-autosuggestions";
+          src = pkgs.fetchFromGitHub {
+            owner = "zsh-users";
+            repo = "zsh-autosuggestions";
+            rev = "v0.7.0";
+            sha256 = "sha256-KLUYpUu4DHRumQZ3w59m9aTW6TBKMCXl2UcKi4uMd7w=";
+          };
+        }
+        {
+          name = "zsh-256color";
+          src = pkgs.fetchFromGitHub {
+            owner = "chrissicool";
+            repo = "zsh-256color";
+            rev = "9d8fa1015dfa895f2258c2efc668bc7012f06da6";
+            sha256 = "sha256-Qd9pjDSQk+kz++/UjGVbM4AhAklc1xSTimLQXxN57pI=";
+          };
+        }
+        {
+          name = "zsh-syntax-highlighting";
+          src = pkgs.fetchFromGitHub {
+            owner = "zsh-users";
+            repo = "zsh-syntax-highlighting";
+            rev = "0.7.0";
+            sha256 = "sha256-eRTk0o35QbPB9kOIV0iDwd0j5P/yewFFISVS/iEfP2g=";
+          };
+        }
+        {
+          name = "agnoster-nanof";
+          file = "agnoster-nanof.zsh-theme";
+          src = pkgs.fetchFromGitHub {
+            owner = "fsegouin";
+            repo = "oh-my-zsh-agnoster-mod-theme";
+            rev = "46832da7156a4cd67e9b7ed245bb2782c690b8bb";
+            sha256 = "sha256-hCG/N0AbjAxDLbMo+lLpf6SKyx5Athru84nWL/3spb4=";
+          };
+        }
+      ];
+
       shellAliases = {
         ls = "ls --color";
         l = "ls -l";