nixos-config/common.nix

186 lines
4.0 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;
2016-06-02 18:55:12 +00:00
nix.useSandbox = true;
2016-04-24 14:57:21 +00:00
nix.binaryCaches = [ https://cache.nixos.org ];
nix.trustedBinaryCaches = [ https://cache.nixos.org ];
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
2016-02-16 17:48:06 +00:00
idea.idea-community
2016-03-26 16:50:15 +00:00
# firefoxWrapper
# qutebrowser
2015-05-24 09:37:55 +00:00
chromium
2016-03-26 16:50:15 +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
mpv
wireshark-gtk
2015-05-21 14:13:47 +00:00
mutt
2015-11-22 12:10:52 +00:00
goldendict
2016-03-26 16:50:15 +00:00
patchelf
bazaar
2015-05-21 14:13:47 +00:00
2016-06-07 08:55:25 +00:00
texlive.combined.scheme-full biber
2015-05-21 14:13:47 +00:00
androidsdk_4_4
gimp
inkscape
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
pkgsi686Linux.libreoffice
2015-08-26 10:22:16 +00:00
calibre
mediainfo
isync
mu
msmtp
2016-06-18 18:52:14 +00:00
vdirsyncer khard khal
2015-08-26 10:22:16 +00:00
veriT
minisat
2016-05-31 08:46:00 +00:00
picosat
2015-08-26 10:22:16 +00:00
prover9
eprover
2015-09-24 18:53:19 +00:00
metis-prover
2015-12-21 17:01:07 +00:00
spass
2015-08-26 10:22:16 +00:00
z3
2016-03-26 16:50:15 +00:00
cvc4
2015-08-26 10:22:16 +00:00
why3
2015-09-11 04:56:20 +00:00
graphviz
# toysolver
2016-06-02 18:55:12 +00:00
stable.haskellPackages.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
2016-06-02 18:55:12 +00:00
nixpkgs.config.packageOverrides = pkgs: with pkgs; let
fetchNixPkgs = { rev, sha256 }:
fetchFromGitHub {
inherit sha256 rev;
owner = "NixOS";
repo = "nixpkgs-channels";
};
stable = import (fetchNixPkgs {
2016-06-14 12:22:29 +00:00
rev = "9e959ce6441a3309c2f3e7b07c62f7c681e8eb6f";
sha256 = "1fi40m9yq6jbskp8j0mxnlxhcf4mvwh1qn27idcb9l58762hn5nb";
2016-06-02 18:55:12 +00:00
}) {};
in {
2015-12-17 08:22:14 +00:00
idea.idea-community = pkgs.idea.idea-community.overrideDerivation (oldAttrs: rec {
name = "idea-community-${version}";
2016-06-02 18:55:00 +00:00
version = "2016.2.eap";
2015-12-17 08:22:14 +00:00
src = pkgs.fetchurl {
2016-06-14 15:17:03 +00:00
url = "https://download.jetbrains.com/idea/ideaIC-162.844.8-no-jdk.tar.gz";
sha256 = "9a57f0b03541bafb2f26fd2557b20e489092e7838d5e303842a64d7004fa8214";
2015-12-17 08:22:14 +00:00
};
});
2016-01-06 09:15:33 +00:00
neovim = pkgs.neovim.override {
extraPythonPackages = [ pkgs.pythonPackages.websocket_client ];
};
2016-06-02 18:55:12 +00:00
2016-06-18 18:52:14 +00:00
# remove with khal 0.9.0
khal = khal.overrideDerivation (oldAttrs: { checkPhase = ""; installCheckPhase = "true"; });
2016-06-02 18:55:12 +00:00
stable = stable;
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
2015-12-24 12:06:29 +00:00
services.printing = {
enable = true;
drivers = [ pkgs.hplip ];
};
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";
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";
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
}