dotfiles/nix/.nixpkgs/config.nix

187 lines
4.7 KiB
Nix
Raw Normal View History

2016-01-28 03:06:14 +01:00
{
allowUnfree = true;
2016-04-19 00:07:28 +02:00
#binaryCachePublicKeys = [ "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" ];
2016-01-28 03:06:14 +01:00
firefox = {
enableGoogleTalkPlugin = true;
enableAdobeFlash = true;
};
2016-08-26 18:12:45 +02:00
# chromium = {
# enablePepperFlash = true;
# enablePepperPDF = true;
# };
2016-01-28 03:06:14 +01:00
packageOverrides = pkgs: with pkgs;
let
mkEnv = name: paths: pkgs.buildEnv { inherit name paths; };
2016-01-31 22:11:15 +01:00
py3 = python35Packages; hs = haskellPackages; js = nodePackages; ml = ocamlPackages;
2016-08-26 18:12:45 +02:00
py2 = python27Packages; emc = emacsPackages; emcn = emacsPackagesNg; elm = elmPackages;
2016-01-28 03:06:14 +01:00
in rec {
2016-04-19 00:07:28 +02:00
org = pkgs.emacsPackages.org.overrideDerivation (attrs: {
nativeBuildInputs = [emacs texinfo tetex]; });
2016-09-17 15:09:53 +02:00
#wine = pkgs.wine.override { wineRelease = "staging"; wineBuild = "wineWow"; };
2016-04-19 00:07:28 +02:00
ftb = pkgs.callPackage ./ftb.nix {};
pyroscope = pkgs.callPackage ./pyroscope.nix {};
2016-09-06 18:42:32 +02:00
peageprint = pkgs.callPackage ./peageprint.nix {};
2016-08-30 16:19:29 +02:00
python35Packages = py3 // {
# pycrypto runs slow tests by default
pycrypto = py3.pycrypto.overrideDerivation (attrs: {
installCheckPhase = ''
${py3.python.interpreter} nix_run_setup.py test --skip-slow-tests
'';
});
};
2016-04-19 00:07:28 +02:00
2016-09-17 15:09:53 +02:00
weiightminder = pkgs.callPackage (fetchgit {
url = https://gist.github.com/yorickvP/229d21a7da13c9c514dbd26147822641;
rev = "482103c3fb02ab69d1f0787fda1d9ec2272daf72";
sha256 = "1fql3z6qv1is1jarjp24bqb7g5xi5sfchl9jqjd54yjvjxl0q61v";
}) {};
yscripts = pkgs.callPackage ../../bin {};
2016-04-19 00:07:28 +02:00
2016-01-28 03:06:14 +01:00
envs = recurseIntoAttrs {
de = mkEnv "y-de-deps" [
gtk-engine-murrine
2016-08-26 18:12:45 +02:00
hicolor_icon_theme
arc-gtk-theme
libnotify
2016-09-17 15:09:53 +02:00
rxvt_unicode
2016-01-28 03:06:14 +01:00
arandr
xorg.xrandr
2016-01-31 22:11:15 +01:00
pavucontrol
2016-01-28 03:06:14 +01:00
];
2016-09-17 15:09:53 +02:00
scripts = mkEnv "y-scripts" ([
peageprint
weiightminder
] ++ (with yscripts; [brightness]));
2016-01-28 03:06:14 +01:00
apps = mkEnv "y-apps" [
2016-04-30 21:21:06 +02:00
gajim
mutt
torbrowser
2016-08-26 18:12:45 +02:00
chromium
2016-04-30 21:21:06 +02:00
firefox-bin
2016-01-28 03:06:14 +01:00
gimp
2016-09-17 15:09:53 +02:00
tdesktop
2016-08-26 18:12:45 +02:00
#hexchat
2016-01-28 03:06:14 +01:00
#inkscape
keepassx
# libreoffice
2016-08-26 18:12:45 +02:00
skype
2016-01-28 03:06:14 +01:00
spotify
kde4.quasselClientWithoutKDE
sublime3
leafpad
calibre
2016-08-26 18:12:45 +02:00
#py2.plover
2016-01-31 22:11:15 +01:00
wireshark meld
2016-01-28 03:06:14 +01:00
];
media = mkEnv "y-media" [
2016-04-19 00:07:28 +02:00
py3.livestreamer
py3.youtube-dl
2016-01-28 03:06:14 +01:00
mpv
aria2
];
coins = mkEnv "y-coins" [
2016-08-26 18:12:45 +02:00
# altcoins.namecoin
2016-01-28 03:06:14 +01:00
# altcoins.dogecoin
electrum
];
nix = mkEnv "y-nix" [
patchelf nix nix-prefetch-git nix-repl nixops nox
];
c = mkEnv "y-cdev" [
2016-01-31 22:11:15 +01:00
valgrind cdecl gdb ltrace cmake # gcc
2016-01-28 03:06:14 +01:00
];
misc = mkEnv "y-misc" [
2016-08-26 18:12:45 +02:00
#gitAndTools.git-annex # doesn't build
gnupg1 man-pages bup # catdoc
2016-01-28 03:06:14 +01:00
imagemagick
2016-01-31 22:11:15 +01:00
openssl
2016-01-28 03:06:14 +01:00
sshfsFuse
2016-01-31 22:11:15 +01:00
sshuttle iodine stow
2016-08-26 18:12:45 +02:00
expect duplicity
wakelan x2x
2016-01-28 03:06:14 +01:00
];
2016-08-26 18:12:45 +02:00
emacs = mkEnv "y-emacs" [emacs org emcn.smex emcn.agda2-mode emc.colorThemeSolarized];
code_min = mkEnv "y-codemin" [
2016-09-17 15:09:53 +02:00
python gitAndTools.hub gnumake cloc silver-searcher
2016-08-26 18:12:45 +02:00
];
2016-01-28 03:06:14 +01:00
code = mkEnv "y-code" [
cloc graphviz sloccount silver-searcher
gnumake strace stack # hs?
2016-08-26 18:12:45 +02:00
# TODO: patch sublime3 haskell integration for stack (correct hsdev version)
2016-01-31 22:11:15 +01:00
(hiPrio python3) python dos2unix dhex
2016-08-26 18:12:45 +02:00
# elm.elm # agda
2016-01-28 03:06:14 +01:00
# vcs
2016-08-26 18:12:45 +02:00
gitAndTools.hub subversion
2016-01-28 03:06:14 +01:00
# db
sqliteInteractive
];
wifimcu = mkEnv "wifimcu-dev" [
minicom lrzsz lua
];
2016-08-26 18:12:45 +02:00
java = openjdk;
# java = mkEnv "y-java" [
# openjdk
# ];
2016-01-31 22:11:15 +01:00
2016-01-28 03:06:14 +01:00
games = mkEnv "y-games" [
2016-04-30 21:21:06 +02:00
# steam openttd wine winetricks minecraft
2016-08-26 18:12:45 +02:00
openttd # steam
2016-01-28 03:06:14 +01:00
];
js = mkEnv "y-jsdev" [
2016-08-26 18:12:45 +02:00
js.jshint nodejs-6_x electron
2016-01-28 03:06:14 +01:00
];
pdf = mkEnv "y-pdf" [
ml.cpdf zathura pandoc poppler_utils
];
xdev = mkEnv "y-xdev" [
wmname xev xlsfonts xwininfo glxinfo
];
2016-08-26 18:12:45 +02:00
};
hosts = {
2016-09-17 15:09:53 +02:00
ascanius = with envs; [apps code_min de games envs.js pdf nix media gcc misc scripts coins];
2016-08-26 18:12:45 +02:00
woodhouse = with envs; [de media misc kodi chromium spotify];
pennyworth = [];
frumar = with envs; [bup git-annex rtorrent pyroscope];
2016-01-28 03:06:14 +01:00
};
2016-04-19 00:07:28 +02:00
pandocdeps = (pkgs.texlive.combine {
inherit (pkgs.texlive)
scheme-basic
# explicit list pandoc tex dependencies
amsfonts amsmath lm ec ifxetex ifluatex eurosym listings fancyvrb
# longtable
booktabs
hyperref ulem geometry setspace
# linestretch
babel
# some optional dependencies of pandoc
upquote microtype csquotes
2016-09-17 15:09:53 +02:00
mathtools
2016-04-19 00:07:28 +02:00
;
});
2016-01-28 03:06:14 +01:00
};
}