Skip to content

Instantly share code, notes, and snippets.

@Mic92

Mic92/config.nix Secret

Created February 27, 2017 20:26
Show Gist options
  • Save Mic92/256203f5277638f29342d64051708ece to your computer and use it in GitHub Desktop.
Save Mic92/256203f5277638f29342d64051708ece to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
let
nvim = pkgs.neovim.override {
vimAlias = true;
configure.packages.nixbundle = with pkgs.vimPlugins; {
# loaded on launch
start = with vimPlugins; [
deoplete-nvim
clang_complete
syntastic
gitgutter
airline
nerdtree
colors-solarized
vim-go
vim-scala
vim-polyglot
syntastic
delimitMate
editorconfig-vim
ctrlp
# vim-trailing-whitespace
];
};
};
rubyEnv = pkgs.loadRubyEnv ./.bundix/definition.nix {
paths = with pkgs; [ bundler bundix rubocop ];
};
desktopApps = [
cantata
dropbox
#android-studio
gimp
inkscape
mpd
mpv
chromium
thunderbird
transmission_gtk
rxvt_unicode-with-plugins
libreoffice
aspell
aspellDicts.de
aspellDicts.fr
aspellDicts.en
hunspell
hunspellDicts.en-gb-ise
scrot
gajim
arandr
lxappearance
xorg.xev
xorg.xprop
xclip
copyq
xautolock
i3lock
keepassx-reboot
pavucontrol
evince
pcmanfm
gpodder
valauncher
youtube-dl
ncmpcpp
xclip
screen-message
scrot
] ++ (with gnome3; [
gvfs
eog
gedit
gnome_themes_standard
adwaita-icon-theme
]);
pythonLibs = with pythonPackages; [
ipython
numpy
scipy
matplotlib
pandas
seaborn
];
rust = [
rustNightlyBin.rustc
rustNightlyBin.cargo
rustfmt
rustracer
];
nixDev = [
nix-prefetch-git
nix-prefetch-scripts
pypi2nix
go2nix
bundix
nox
nix-repl
];
latex = [
rubber
(texlive.combine {
inherit (texlive)
scheme-basic
# awesome cv
xetex
xetex-def
unicode-math
ucharcat
collection-fontsextra
fontspec
collection-binextra
collection-fontsrecommended
collection-genericrecommended
collection-latex
collection-latexextra
collection-latexrecommended
collection-science
collection-langgerman
IEEEtran;
})
];
in {
allowUnfree = true;
allowBroken = true;
packageOverrides = pkgs: with pkgs; {
st = (st.overrideDerivation (old: { dontStrip = true; })).override ({
libXft = xorg.libXft.overrideDerivation (old: {
dontStrip = false;
});
});
all = buildEnv {
inherit ((import <nixpkgs/nixos> {}).config.system.path)
pathsToLink ignoreCollisions postBuild;
name = "all";
paths = desktopApps
++ rust
++ pythonLibs
++ nixDev
++ [
nvim
gitAndTools.diff-so-fancy
gitAndTools.hub
mercurial
sshfsFuse
sshuttle
jq
httpie
cloc
mosh
cheat
graphicsmagick
gdb
gnupg1compat
direnv
ghostscript
] ++ latex;
};
staging = buildEnv {
name = "staging";
paths = [ ];
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment