nixos-config/common.nix

170 lines
3.2 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
2015-05-21 16:13:47 +02:00
];
boot.kernelPackages = pkgs.linuxPackages_latest;
nix.binaryCaches = [ https://hydra.nixos.org https://cache.nixos.org ];
nix.trustedBinaryCaches = [ https://hydra.nixos.org https://cache.nixos.org ];
2015-08-19 17:45:11 +02:00
nix.binaryCachePublicKeys = [ "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" ];
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; [
2015-05-21 16:13:47 +02:00
stdenv
nox
wget
vim_configurable
zsh
gitFull gitAndTools.hub tig gitg
gnumake
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
idea.idea-community
screen
psmisc
2015-05-24 11:37:55 +02:00
pkgs.parallel
2015-05-21 16:13:47 +02:00
firefoxWrapper
2015-05-24 11:37:55 +02:00
chromium
2015-05-21 16:13:47 +02:00
thunderbird
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-05-21 16:13:47 +02:00
gcc
2015-06-09 17:40:19 +02:00
remmina
2015-05-21 16:13:47 +02:00
silver-searcher
tree
python
python34
python34Packages.ipython
ledger
hledger
hledger-diff
cmake
vimPlugins.YouCompleteMe
gdb
mpv
2015-05-24 11:37:55 +02:00
bind nmap wireshark-gtk
2015-05-21 16:13:47 +02:00
dstat
which
zip
file
unzip
elinks
ctags
mutt
nix-prefetch-scripts
2015-05-24 11:37:55 +02:00
nix-repl
2015-05-21 16:13:47 +02:00
texLiveFull biber
androidsdk_4_4
gimp
inkscape
2015-05-28 09:51:24 +02:00
# libreoffice
2015-05-21 16:13:47 +02:00
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
z3
why3
nix-repl
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-07-19 17:18:18 +02:00
nixpkgs.config.allowTexliveBuilds = true;
2015-05-21 16:13:47 +02:00
environment.variables.EDITOR = "${pkgs.vim}/bin/vim";
# 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 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";
2015-05-21 16:50:37 +02:00
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";
2015-05-21 16:50:37 +02:00
options = "noauto,x-systemd.automount,credentials=/etc/smbcredentials/aruanus";
2015-05-21 16:13:47 +02:00
};
2015-05-21 17:51:41 +02:00
programs.zsh = {
enable = true;
promptInit = "";
};
2015-05-21 16:13:47 +02:00
users.extraUsers.gebner = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
shell = "${pkgs.zsh}/bin/zsh";
};
2015-08-09 19:35:31 +02:00
system.fsPackages = [ pkgs.ntfs3g ];
2015-05-21 16:13:47 +02:00
}