all repos — nixfiles @ 83cecc19118a232825bea1d54d81dc6c1400552e

System and user configuration, managed by nix and home-manager

shell: fix darwin check
Alan Pearce alan@alanpearce.eu
Wed, 14 Nov 2018 15:56:02 +0100
commit

83cecc19118a232825bea1d54d81dc6c1400552e

parent

460eae59fd62fbc8430b5e34bb6c82afcd71a568

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M modules/programs/shell.nixmodules/programs/shell.nix
@@ -5,7 +5,9 @@ enable = true;     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