Created
January 29, 2017 23:56
-
-
Save garbas/3c7cdb87ceef139e66519a1cd95947b0 to your computer and use it in GitHub Desktop.
Example config.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
neovim = pkgs.neovim.override { | |
configure = { | |
customRC = '' | |
" vim config | |
''; | |
vam.pluginDictionaries = [ | |
{ names = [ | |
"surround" | |
"sensible" | |
"nerdtree" | |
"ctrlp-vim" | |
# Plug 'd11wtq/ctrlp_bdelete.vim' | |
"Tabular" | |
"matchit-zip" | |
# "ack.vim" | |
"vim-airline" | |
"fugitive" | |
"Rename" | |
"gundo-vim" | |
# "vim-obsession" | |
# "vim-textobj-user" | 'nelstrom/vim-textobj-rubyblock' | |
# "auto-git-diff" | |
"vim-css-color" | |
# "vim-bbye" | |
# "vim-instant-markdown", { 'for': 'markdown' } | |
# "CamelCaseMotion" | |
# function! DoRemote(arg) | |
# UpdateRemotePlugins | |
# endfunction | |
"deoplete-nvim" | |
"vim-gitgutter" | |
"neomake" | |
"Tagbar" | |
# Syntaxes | |
"vim-go" | |
# "vim-markdown" | |
# set conceallevel=2 | |
# let g:vim_markdown_new_list_item_indent = 2 | |
# "vim-rails", { 'for': 'ruby' } | |
# "vim-fish" | |
"vim-nix" | |
# Themes | |
"zenburn" | |
]; } | |
]; | |
}; | |
}; | |
i3Config = pkgs.writeText "git-config" '' | |
# content of ~/.config/i3/config | |
... | |
''; | |
}; | |
i3 = stdenv.mkDerivation { | |
name = "i3-configured-${pkgs.i3.version}"; | |
nativeBuildInputs = [ makeWrapper ]; | |
buildCommand = '' | |
mkdir -p $out/bin | |
for item in ${pkgs.i3}/bin/*; do | |
ln -s $item $out/bin/ | |
done | |
wrapProgram $out/bin/i3 --add-flags "-c ${i3File}" | |
''; | |
}; | |
in { | |
packageOverrides = pkgs: rec { | |
lorenzo = pkgs.buildEnv{ | |
name = "lorenzo"; | |
paths = [ | |
pkgs.termite | |
pkgs.git | |
pkgs.git-hub | |
pkgs.tmux | |
pkgs.xss-lock | |
pkgs.tarsnap | |
# TODO fix! | |
# pkgs.libva | |
# pkgs.broken on non-nixos | |
# pkgs.mpv | |
pkgs.python35Packages.glances | |
pkgs.python35Packages.youtube-dl | |
pkgs.ag | |
pkgs.weechat | |
pkgs.go | |
pkgs.aria2 # parallel HTTP downloader | |
pkgs.blueman # bluetooth manager | |
pkgs.dunst # notification server | |
pkgs.arandr # GUI for xrandr | |
pkgs.tig | |
pkgs.python35Packages.magic-wormhole | |
pkgs.nix-prefetch-git | |
# pkgs.firefox-bin | |
# configured packages | |
neovim | |
i3 | |
]; | |
}; | |
# firefox = pkgs.firefox-unwrapped.override { | |
# enableOfficialBranding = true; | |
# enableGTK3 = true; | |
# }; | |
mpv = pkgs.mpv.override { | |
waylandSupport = true; | |
}; | |
}; | |
allowUnfree = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment