Skip to content

Instantly share code, notes, and snippets.

@chessai
Created October 3, 2017 20:31
Show Gist options
  • Save chessai/d92e1430f3d8a072828bab74e0123b8a to your computer and use it in GitHub Desktop.
Save chessai/d92e1430f3d8a072828bab74e0123b8a to your computer and use it in GitHub Desktop.
[chessai@CHESSAI:~]$ sudo nixos-rebuild switch
[sudo] password for chessai:
building Nix...
building the system configuration...
error: attribute ‘github:enomsg/vim-haskellConcealPlus’ missing, at /nix/store/5ixbx59nm70kgb2dcwqlndaxvwwy1r4h-nixos-18.03pre116432.263185aa68/nixos/pkgs/misc/vim-plugins/vim-utils.nix:159:25
(use ‘--show-trace’ to show detailed location information)
{config,pkgs,...}:
let
myVim = pkgs.vim_configurable.customize {
name = "vim";
vimrcConfig = {
customRC = ''
syntax on
filetype plugin indent on
set nocompatible
set number
set nowrap
set showmode
set tw=80
set smartcase
set smarttab
set smartindent
set autoindent
set softtabstop=2
set shiftwidth=2
set expandtab
set incsearch
set mouse=a
set history=1000
set clipboard=unnamedplus,autoselect
set completeopt=menuone,menu,longest
set wildignore+=*\\tmp\\*,*.swp,*.swo,*.zip,.git,.cabal-sandbox
set wildmode=longest,list,full
set wildmenu
set completeopt+=longest
set t_Co=256
'';
vam.pluginDictionaries = [
{
names = [
"Gist"
"Hoogle"
"Syntastic"
"The_NERD_Commenter"
"The_NERD_tree"
"ghcmod"
"github:enomsg/vim-haskellConcealPlus"
"github:flazz/vim-colorschemes"
"rainbow_parentheses"
"vundle" ];
}
];
};
};
in
{
environment.systemPackages = [ myVim ];
environment.shellAliases.vi = "vim";
environment.variables.EDITOR = "vim";
programs.bash.shellAliases = {
vi = "vim";
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment