nixos-config/common.nix

171 lines
3.6 KiB
Nix
Raw Normal View History

2015-05-21 16:13:47 +02:00
{ config, pkgs, ... }:
{
imports =
[
/etc/nixos/hardware-configuration.nix
2015-05-27 18:52:02 +02:00
./i3.nix
./basic-tools.nix
2015-05-21 16:13:47 +02:00
];
boot.kernelPackages = pkgs.linuxPackages_latest;
nix.useChroot = true;
2016-04-24 16:57:21 +02: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 16:13:47 +02: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 12:22:16 +02:00
environment.systemPackages = with pkgs.haskellPackages; with pkgs; [
gitg
2015-05-24 11:42:37 +02:00
gmpc
2015-05-21 16:13:47 +02:00
m4
2015-05-21 17:51:28 +02:00
subversion
2015-05-21 16:13:47 +02:00
openjdk8
sbt scala
2016-02-16 18:48:06 +01:00
idea.idea-community
2016-03-26 17:50:15 +01:00
# firefoxWrapper
# qutebrowser
2015-05-24 11:37:55 +02:00
chromium
2016-03-26 17:50:15 +01:00
# thunderbird
2015-09-03 10:41:10 +02:00
qalculate-gtk
2015-09-11 07:14:03 +02:00
speedcrunch
2015-05-24 11:37:55 +02:00
viewnior
2015-05-21 16:13:47 +02:00
gnupg
2015-05-24 11:37:55 +02:00
pass xclip pwgen
2015-06-09 17:40:19 +02:00
remmina
2015-05-21 16:13:47 +02:00
ledger
hledger
hledger-diff
cmake
mpv
wireshark-gtk
2015-05-21 16:13:47 +02:00
mutt
2015-11-22 13:10:52 +01:00
goldendict
2016-03-26 17:50:15 +01:00
patchelf
bazaar
2015-05-21 16:13:47 +02:00
2015-09-22 08:58:02 +02:00
(texlive.combine {
2015-12-04 18:13:11 +01:00
inherit (texlive) scheme-full;
2016-01-22 19:00:32 +01:00
# pkgFilter = pkg: pkg.tlType != "source" && pkg.tlType != "doc";
2015-09-22 08:58:02 +02:00
}) biber
2015-05-21 16:13:47 +02:00
androidsdk_4_4
gimp
inkscape
jabref
2015-08-31 19:09:24 +02:00
pdfpc
2015-05-21 16:13:47 +02:00
# haskell dev
cabal2nix
cabal-install
2015-08-18 11:28:40 +02:00
ghc-mod
2015-07-12 15:34:43 +02:00
2015-07-13 14:24:37 +02:00
# emacs
2015-07-12 15:34:43 +02:00
emacs
ghostscript # for auctex
2015-07-13 14:24:37 +02:00
aspell
2015-08-26 12:22:16 +02:00
libreoffice
calibre
mediainfo
isync
mu
msmtp
veriT
minisat
prover9
eprover
2015-09-24 20:53:19 +02:00
metis-prover
2015-12-21 18:01:07 +01:00
spass
2015-08-26 12:22:16 +02:00
z3
2016-03-26 17:50:15 +01:00
cvc4
2015-08-26 12:22:16 +02:00
why3
2015-09-11 06:56:20 +02:00
graphviz
# toysolver
2016-01-30 16:03:16 +01:00
tip-lib
2015-09-11 07:14:03 +02:00
coq_8_5
emacsPackages.proofgeneral_4_3_pre
2015-07-13 14:24:37 +02:00
] ++ (with aspellDicts; [ en de fr nl ]);
2015-05-21 16:13:47 +02:00
nixpkgs.config.packageOverrides = pkgs: rec {
2015-12-17 09:22:14 +01:00
idea.idea-community = pkgs.idea.idea-community.overrideDerivation (oldAttrs: rec {
name = "idea-community-${version}";
2016-03-26 17:50:15 +01:00
version = "2016.1.eap";
2015-12-17 09:22:14 +01:00
src = pkgs.fetchurl {
2016-04-18 11:34:51 +02:00
url = "https://download.jetbrains.com/idea/ideaIC-145.969.6-no-jdk.tar.gz";
sha256 = "b9d0abc4cc7a5e2ee019028335dfd096da2587ed8165d30871cb00a8592148cc";
2015-12-17 09:22:14 +01:00
};
});
2016-01-06 10:15:33 +01:00
neovim = pkgs.neovim.override {
extraPythonPackages = [ pkgs.pythonPackages.websocket_client ];
};
2015-05-21 16:13:47 +02:00
};
2015-07-19 17:18:18 +02:00
nixpkgs.config.allowTexliveBuilds = true;
2015-05-21 16:13:47 +02: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 13:06:29 +01:00
services.printing = {
enable = true;
drivers = [ pkgs.hplip ];
};
2015-06-02 16:39:37 +02:00
# services.colord.enable = true;
2015-05-21 16:13:47 +02:00
# IntelliJ
boot.kernel.sysctl."fs.inotify.max_user_watches" = 524288;
2015-06-02 12:38:56 +02:00
# gapt: `ulimit -n` was 256
security.pam.loginLimits = [
{ domain = "*"; type = "-"; item = "nofile"; value = "4096"; }
];
2015-05-21 16:13:47 +02:00
fileSystems."/mnt/vaccaria" = {
device = "//vaccaria.mtlaa.gebner.org/export";
fsType = "cifs";
options = [ "noauto" "x-systemd.automount" "credentials=/etc/smbcredentials/vaccaria" ];
2015-05-21 16:13:47 +02:00
};
fileSystems."/mnt/aruanus" = {
device = "//aruanus.htdf.gebner.org/export";
fsType = "cifs";
options = [ "noauto" "x-systemd.automount" "credentials=/etc/smbcredentials/aruanus" ];
2015-05-21 16:13:47 +02:00
};
users.extraUsers.gebner = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
2015-09-20 10:45:13 +02:00
# shell = "${pkgs.zsh}/bin/zsh";
2015-09-01 14:16:20 +02:00
password = if config.virtualisation != null then "" else null;
2015-05-21 16:13:47 +02:00
};
2015-08-09 19:35:31 +02:00
system.fsPackages = [ pkgs.ntfs3g ];
2015-05-21 16:13:47 +02:00
}