nixos-config/common.nix

162 lines
3.6 KiB
Nix
Raw Normal View History

2015-05-21 14:13:47 +00:00
{ config, pkgs, ... }:
{
imports =
[
/etc/nixos/hardware-configuration.nix
2015-05-27 16:52:02 +00:00
./i3.nix
./basic-tools.nix
2015-05-21 14:13:47 +00:00
];
boot.kernelPackages = pkgs.linuxPackages_latest;
nix.useChroot = true;
2015-05-21 14:13:47 +00:00
nix.binaryCaches = [ https://hydra.nixos.org https://cache.nixos.org ];
nix.trustedBinaryCaches = [ https://hydra.nixos.org https://cache.nixos.org ];
2015-08-19 15:45:11 +00:00
nix.binaryCachePublicKeys = [ "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" ];
nix.extraOptions = ''
auto-optimise-store = true
binary-caches-parallel-connections = 10
'';
2015-05-21 14:13:47 +00:00
networking.networkmanager.enable = true;
networking.firewall.enable = true;
time.timeZone = "Europe/Vienna";
# Select internationalisation properties.
# i18n = {
# consoleFont = "lat9w-16";
# consoleKeyMap = "us";
# defaultLocale = "en_US.UTF-8";
# };
2015-08-26 10:22:16 +00:00
environment.systemPackages = with pkgs.haskellPackages; with pkgs; [
gitg
2015-05-24 09:42:37 +00:00
gmpc
2015-05-21 14:13:47 +00:00
m4
2015-05-21 15:51:28 +00:00
subversion
2015-05-21 14:13:47 +00:00
openjdk8
sbt scala
idea.idea-community
firefoxWrapper
2015-09-22 15:39:03 +00:00
qutebrowser
2015-05-24 09:37:55 +00:00
chromium
2015-05-21 14:13:47 +00:00
thunderbird
2015-09-03 08:41:10 +00:00
qalculate-gtk
2015-09-11 05:14:03 +00:00
speedcrunch
2015-05-24 09:37:55 +00:00
viewnior
2015-05-21 14:13:47 +00:00
gnupg
2015-05-24 09:37:55 +00:00
pass xclip pwgen
2015-06-09 15:40:19 +00:00
remmina
2015-05-21 14:13:47 +00:00
ledger
hledger
hledger-diff
cmake
vimPlugins.YouCompleteMe
mpv
wireshark-gtk
2015-05-21 14:13:47 +00:00
mutt
2015-11-22 12:10:52 +00:00
goldendict
2015-05-21 14:13:47 +00:00
2015-09-22 06:58:02 +00:00
(texlive.combine {
2015-11-22 11:10:39 +00:00
inherit (texlive) scheme-medium bussproofs enumitem tocbibind biblatex logreq cleveref comment algorithm2e relsize wrapfig capt-of fixme pgf tikz-cd algorithmicx algorithms lkproof;
2015-09-22 06:58:02 +00:00
}) biber
2015-05-21 14:13:47 +00:00
androidsdk_4_4
gimp
inkscape
2015-05-28 07:51:24 +00:00
# libreoffice
2015-05-21 14:13:47 +00:00
jabref
2015-08-31 17:09:24 +00:00
pdfpc
2015-05-21 14:13:47 +00:00
# haskell dev
cabal2nix
cabal-install
2015-08-18 09:28:40 +00:00
ghc-mod
2015-07-12 13:34:43 +00:00
2015-07-13 12:24:37 +00:00
# emacs
2015-07-12 13:34:43 +00:00
emacs
ghostscript # for auctex
2015-07-13 12:24:37 +00:00
aspell
2015-08-26 10:22:16 +00:00
libreoffice
calibre
mediainfo
isync
mu
msmtp
veriT
minisat
prover9
eprover
2015-09-24 18:53:19 +00:00
metis-prover
2015-08-26 10:22:16 +00:00
z3
why3
2015-09-11 04:56:20 +00:00
graphviz
# toysolver
2015-11-22 13:04:22 +00:00
# tip-lib
2015-09-11 05:14:03 +00:00
coq_8_5
emacsPackages.proofgeneral_4_3_pre
2015-07-13 12:24:37 +00:00
] ++ (with aspellDicts; [ en de fr nl ]);
2015-05-21 14:13:47 +00:00
nixpkgs.config.packageOverrides = pkgs: rec {
idea.idea-community = pkgs.idea.idea-community.overrideDerivation (oldAttrs: rec {
2015-10-01 06:18:25 +00:00
name = "idea-community-${version}";
version = "15.eap";
src = pkgs.fetchurl {
2015-11-22 13:04:03 +00:00
url = "https://download.jetbrains.com/idea/ideaIC-143.870.1.tar.gz";
sha256 = "1k75x2an0wykcw0f9nwxd6qzmb0yazskai6ab1k5b86g3ias1m2r";
2015-10-01 06:18:25 +00:00
};
});
2015-05-21 14:13:47 +00:00
};
2015-07-19 15:18:18 +00:00
nixpkgs.config.allowTexliveBuilds = true;
2015-05-21 14:13:47 +00:00
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
permitRootLogin = "no";
passwordAuthentication = false;
};
programs.ssh.startAgent = false;
# Enable CUPS to print documents.
services.avahi.enable = true; # cups browsing support
services.printing.enable = true;
2015-06-02 14:39:37 +00:00
# services.colord.enable = true;
2015-05-21 14:13:47 +00:00
# IntelliJ
boot.kernel.sysctl."fs.inotify.max_user_watches" = 524288;
2015-06-02 10:38:56 +00:00
# gapt: `ulimit -n` was 256
security.pam.loginLimits = [
{ domain = "*"; type = "-"; item = "nofile"; value = "4096"; }
];
2015-05-21 14:13:47 +00:00
fileSystems."/mnt/vaccaria" = {
device = "//vaccaria.mtlaa.gebner.org/export";
fsType = "cifs";
2015-05-21 14:50:37 +00:00
options = "noauto,x-systemd.automount,credentials=/etc/smbcredentials/vaccaria";
2015-05-21 14:13:47 +00:00
};
fileSystems."/mnt/aruanus" = {
device = "//aruanus.htdf.gebner.org/export";
fsType = "cifs";
2015-05-21 14:50:37 +00:00
options = "noauto,x-systemd.automount,credentials=/etc/smbcredentials/aruanus";
2015-05-21 14:13:47 +00:00
};
users.extraUsers.gebner = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
2015-09-20 08:45:13 +00:00
# shell = "${pkgs.zsh}/bin/zsh";
2015-09-01 12:16:20 +00:00
password = if config.virtualisation != null then "" else null;
2015-05-21 14:13:47 +00:00
};
2015-08-09 17:35:31 +00:00
system.fsPackages = [ pkgs.ntfs3g ];
2015-05-21 14:13:47 +00:00
}