about summary refs log tree commit diff stats
path: root/nix-conf/home/includes
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2023-01-13 07:47:03 +0000
committerDavid Morgan <djm_uk@protonmail.com>2023-01-13 07:47:03 +0000
commitf0f1ee1af0eb3968513e9ea904a59607c86478b6 (patch)
treefdc275e5cac228ad91030017f87fd98badba66ad /nix-conf/home/includes
parent92f56b3048c9879f5b7651412784870aecca1cf1 (diff)
downloaddotfiles-f0f1ee1af0eb3968513e9ea904a59607c86478b6.tar.gz
Only use nvm on darwin
Diffstat (limited to 'nix-conf/home/includes')
-rw-r--r--nix-conf/home/includes/zsh.nix8
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 {