Skip to content

Instantly share code, notes, and snippets.

@spinus
Created July 8, 2017 16:15
Show Gist options
  • Save spinus/c9ab55a02d557245cc5d2d83be606eaa to your computer and use it in GitHub Desktop.
Save spinus/c9ab55a02d557245cc5d2d83be606eaa to your computer and use it in GitHub Desktop.
~/nixpkgs/config.nix
let
ver = "20170527";
in
{
allowUnfree = true;
allowBroken = true;
firefox = {
enableGoogleTalkPlugin = true;
enableAdobeFlash = true;
icedtea=true;
};
chromium = {
enablePepperFlash = true;
enablePepperPDF = true;
icedtea=true;
};
packageOverrides = pkgs: with pkgs;
let
packages = (import ./packages.nix {inherit pkgs;});
in
rec {
x-toggl = pkgs.libsForQt5.callPackage ({ qtbase,poco, makeQtWrapper }:
pkgs.stdenv.mkDerivation {
name = "toggl";
buildInputs = [qtbase poco];
nativeBuiltInputs = [makeQtWrapper];
src = fetchFromGitHub {
repo = "toggldesktop";
owner = "toggl";
sha256="0x9iivb6ixvb4rc5h22pyqvgh3jy7114pijp87n8yyw209ahz690";
rev="v7.4.45";
};
postFixup=''
wrapQtProgram $out/bin/*
'';
}) {};
spinus-vim = vim_configurable.customize {
name = "vim";
vimrcConfig.customRC = ''
set nocompatible
let mapleader = "\<Space>"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" VIM PLUGINS """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let delimitMate_expand_cr = 1
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" VIM STANDARD STUFF """""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Non visual stuff
set dir=~/.cache/vim/swap
set backupdir=~/.cache/vim/backup
set encoding=utf-8
set termencoding=utf-8
set hidden " do not lose history on buffer change
'';
vimrcConfig.vam.knownPlugins = vimPlugins // packages.vim-plugins;
vimrcConfig.vam.pluginDictionaries = [
{names = [
"ghcmod"
"vimproc"
"vimproc-vim"
"hoogle"
"neco-ghc"
"nerdtree"
"stylish-haskell"
"tagbar"
"vim-css-color" # css colors
"css_color_5056" # paint css colors in css files
"commentary" # gc - comment line
"fugitive" # Gblame, Gstatus
"gundo" # show git history (bound to <Leader><Leader>g)
"easy-align" # Align columns of text: EasyAlign *=
"elm-vim" # syntax + autocompete (with youcompleteme)
"colors-solarized" # theme
"easymotion" # better file search (bound to /)
"table-mode" # table editing with |, TableModeToggle (bound to <Leader>t)
"calendar" # shows calendar
# Tabularize command
"tabular" # text aligning, must be before vim-markdown
# vim-markdow - better markdown syntax + link follow
# gx - open link, ge - edit link
# [[, ]] - move between headers
# Toc, TableFormat
"plasticboy-vim-markdown"
"airline" # colorful statusbar
"YouCompleteMe" # auto complete, inteli completion
"syntastic" # show errors for various languages
"vim-signify" # Show +/-/! for git diff on the left side of the window
"rainbow_parentheses" # color brackets and parentheses
"supertab" # needed to integrate UltiSnips and YouCompleteMe
"UltiSnips" # snippet engine
"vim-snippets" # snippet database
"papercolor-theme"
"vim-systemd-syntax"
"fzf"
"fzf.vim"
"emmet" # HTML builder
"vim-fireplace"
"vim-classpath"
]; }
];
};
spinus-env = with pkgs; buildEnv{
name = "spinus-env-${ver}";
meta={priority=70;};
paths = [
# only terminal friendly apps
spinus-vim
mr
ctags
astyle
bind
pinentry
parallel
httpie
jq
mc
fzf
pwgen
];
};
spinus-env-dev = with pkgs; buildEnv{
name = "spinus-env-dev-${ver}";
meta={priority=60;};
paths = [
gotty
syncthing
syncthing-inotify
borgbackup
encfs
gnupg
gitAndTools.git-annex
sl
sshfsFuse
update-resolv-conf
zip
wget
curl
zsh
ncdu
mtr
# lnav # broken now :[
lsof
psmisc
pv
file
gnumake
htop
tmux
iftop
iotop
silver-searcher
sqlite-interactive
tcpdump
telnet
tree
unrar
unzip
pigz
traceroute
gitAndTools.tig
gitAndTools.topGit
nodePackages.git-run
gitFull
];
};
spinus-env-full = with pkgs; buildEnv{
name = "spinus-env-full-${ver}";
meta={priority=50;};
ignoreCollisions=true;
paths = [
xsel
xclip
spinus-haskell
transmission_gtk
steam
geeqie
gimp
inkscape
evince
digikam5
keepassx2
mplayer
smplayer
gnome3.seahorse
solaar
vidalia
xca
xorg.xev
xscreensaver
synapse
roxterm
simple-scan
tigervnc
hamster-time-tracker
idea.idea-community
android-studio
androidsdk
android-udev-rules
apktool
selendroid
kubernetes
go
vagrant
google-cloud-sdk
nodejs
#pypy
#python27
#python35
roxterm
chromium
firefoxWrapper
icedtea8_web
pidgin
pidginotr
pidgin-skypeweb
pidginwindowmerge
pidgin-xmpp-receipts
purple-hangouts
purple-matrix
skype4pidgin
];
};
spinus-env-experimental = with pkgs; buildEnv {
name = "spinus-env-experimental-${ver}";
paths = [
eclipses.eclipse-platform
chromedriver
ccacheWrapper
ccacheStdenv
distccWrapper
distccStdenv
gradle
sbt
];
};
spinus-haskell = pkgs.haskellPackages.ghcWithPackages (self : [
self.ghc
self.ghc-mod
haskellPackages.stylish-haskell
cabal-install
]);
};
}
{pkgs}: with pkgs; rec {
vim-plugins = rec {
plasticboy-vim-markdown = vimUtils.buildVimPluginFrom2Nix {
name = "plasticboy-vim-markdown";
src = fetchgit {
url = "https://github.com/plasticboy/vim-markdown";
rev = "a3169545f330ec8080244c3ad755bb2211eca8a0";
sha256 = "1ycqx280xpc5gvfx8rrnmkqlv8q8g51hgiryx6yvd9a8ci805cx1";
};
};
emmet = vimUtils.buildVimPluginFrom2Nix {
name = "emmet";
src = fetchgit {
url = "https://github.com/mattn/emmet-vim";
rev = "f4b097af50833964e15f17192f2d1c336e34936e";
sha256 = "0pxg9wmnwjwwnw56b85vxzf5qay7b0k5w9q4g87iqyflbh25swnn";
};
};
papercolor-theme = vimUtils.buildVimPluginFrom2Nix {
name = "papercolor-theme";
src = fetchgit {
url = "https://github.com/NLKNguyen/papercolor-theme";
rev = "e0fd3ccb15c5cdbc09ecffd39ab9e92cfd7e7406";
sha256 = "0ykm020adc001qsy1sbr8a59b61m2jbxyas8ggsil1cqamzwv4a4";
};
};
vim-systemd-syntax = vimUtils.buildVimPluginFrom2Nix {
name = "vim-systemd-syntax";
src = fetchgit {
url = "https://github.com/Matt-Deacalion/vim-systemd-syntax";
rev = "92f386d317c06ddb87c696d45c25c032eede3c03";
sha256 = "0kdc10gg515h2kaj2q114vcy4y48g16cmhpkl4lzk81whai8d1jl";
};
};
"fzf" = vimUtils.buildVimPluginFrom2Nix {
name = "fzf";
src = fetchgit {
url = "https://github.com/junegunn/fzf";
rev = "b86838c2b088ab7c7d80b6103a5fa59d6172ce10";
sha256 = "1zfl53nv0b2wsmgbsf850yafqkx9pplpx339iiw4037msdjqhi19";
};
};
"fzf.vim" = vimUtils.buildVimPluginFrom2Nix {
name = "fzf.vim";
#dependencies = [vim-plugins.fzf];
src = fetchgit {
url = "https://github.com/junegunn/fzf.vim";
rev = "491ff9942f1bc18919176b781f0acc8bfb1ae73d";
sha256 = "05g07gji55rb35hfiisbjwbnkfz7msxq6xsjajvwdl6g2v4nmfyl";
};
};
"vim-fireplace" = vimUtils.buildVimPluginFrom2Nix {
name = "vim-fireplace";
src = fetchFromGitHub {
owner="tpope";
repo="vim-fireplace";
rev = "19c83d5a87ab9d3216846831f0cfe885380b5032";
sha256 = "1y8p4aacdvidld8zy8qghgbchv5d32nrkqzllk8fif0jl2yjcspf";
};
propagatedBuildInputs = [pkgs.leiningen vim-classpath pkgs.openjdk8];
};
"vim-classpath" = vimUtils.buildVimPluginFrom2Nix {
name = "vim-classpath";
src = fetchFromGitHub {
owner="tpope";
repo="vim-classpath";
rev = "1ef18a10512fe0f84bb2c412b38e613c331a7b55";
sha256 = "14icpi4df4pvdx9wam75cdfr0k7sdc7n7aypx2jgs8x1dv88cq4x";
};
propagatedBuildInputs = [pkgs.leiningen pkgs.maven];
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment