summary refs log tree commit diff stats
path: root/modules/programs
diff options
context:
space:
mode:
authorAlan Pearce2018-11-14 15:56:02 +0100
committerAlan Pearce2018-11-14 15:56:02 +0100
commit83cecc19118a232825bea1d54d81dc6c1400552e (patch)
tree2a54c1dc89463f77db00edcee8cdb2cd79f026c9 /modules/programs
parent460eae59fd62fbc8430b5e34bb6c82afcd71a568 (diff)
downloadnixfiles-83cecc19118a232825bea1d54d81dc6c1400552e.tar.lz
nixfiles-83cecc19118a232825bea1d54d81dc6c1400552e.tar.zst
nixfiles-83cecc19118a232825bea1d54d81dc6c1400552e.zip
shell: fix darwin check
Diffstat (limited to 'modules/programs')
-rw-r--r--modules/programs/shell.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/programs/shell.nix b/modules/programs/shell.nix
index d59f9fb5..ab55e0c4 100644
--- a/modules/programs/shell.nix
+++ b/modules/programs/shell.nix
@@ -5,7 +5,9 @@
     promptInit = "";
   };
   programs.bash.enableCompletion = true;
-  programs.vim.enable = pkgs.stdenv.isDarwin;
+  programs.vim = pkgs.lib.attrsets.optionalAttrs pkgs.stdenv.isDarwin {
+    enable = true;
+  };
 
   environment.systemPackages = with pkgs; [
     pv