diff options
author | David Morgan <djm_uk@protonmail.com> | 2023-01-13 07:47:03 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2023-01-13 07:47:03 +0000 |
commit | f0f1ee1af0eb3968513e9ea904a59607c86478b6 (patch) | |
tree | fdc275e5cac228ad91030017f87fd98badba66ad /nix-conf/home/includes | |
parent | 92f56b3048c9879f5b7651412784870aecca1cf1 (diff) | |
download | dotfiles-f0f1ee1af0eb3968513e9ea904a59607c86478b6.tar.gz |
Only use nvm on darwin
Diffstat (limited to 'nix-conf/home/includes')
-rw-r--r-- | nix-conf/home/includes/zsh.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index 21ff059..fc39509 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -1,5 +1,7 @@ -{ config, pkgs, lib, ... }: - +{ config, pkgs, lib, isDarwin, ... }: +let + inherit (lib) optionals; +in { home.packages = with pkgs; [ zsh-completions @@ -270,6 +272,8 @@ }; file = "per-directory-history.zsh"; } + ] + ++ optionals stdenv.isDarwin [ { name = "zsh-nvm"; src = fetchFromGitHub { |