diff options
| author | Baitinq <[email protected]> | 2022-07-23 22:07:56 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2022-07-23 22:07:56 +0200 |
| commit | a5ff94790fac7ae0f62c493e8ce8e85e0ee30158 (patch) | |
| tree | 68d334fc4eaa04bf9f3477432a3ae4344ad3c025 /hosts/home.nix | |
| parent | Update PARTITIONING guide (diff) | |
| download | nixos-config-a5ff94790fac7ae0f62c493e8ce8e85e0ee30158.tar.gz nixos-config-a5ff94790fac7ae0f62c493e8ce8e85e0ee30158.tar.bz2 nixos-config-a5ff94790fac7ae0f62c493e8ce8e85e0ee30158.zip | |
ZSH: Install plugins deterministically
Diffstat (limited to 'hosts/home.nix')
| -rw-r--r-- | hosts/home.nix | 60 |
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"; |