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)
downloadnixos-configuration-83cecc19118a232825bea1d54d81dc6c1400552e.tar.lz
nixos-configuration-83cecc19118a232825bea1d54d81dc6c1400552e.tar.zst
nixos-configuration-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 d59f9fb..ab55e0c 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