2015-07-11 16:55:22 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2016-10-20 20:54:38 +02:00
|
|
|
with import <stockholm/lib>;
|
2015-07-11 16:55:22 +02:00
|
|
|
|
|
|
|
{
|
2015-07-25 00:04:04 +02:00
|
|
|
krebs.build.host = config.krebs.hosts.wu;
|
|
|
|
|
2015-07-11 16:55:22 +02:00
|
|
|
imports = [
|
2016-02-15 16:27:11 +01:00
|
|
|
../.
|
2015-10-29 01:09:54 +01:00
|
|
|
../2configs/hw/w110er.nix
|
2016-02-01 17:13:46 +01:00
|
|
|
../2configs/exim-retiolum.nix
|
2015-07-28 20:40:25 +02:00
|
|
|
../2configs/git.nix
|
2016-02-17 17:23:19 +01:00
|
|
|
../2configs/im.nix
|
2015-07-28 20:40:25 +02:00
|
|
|
../2configs/mail-client.nix
|
2016-02-17 23:35:25 +01:00
|
|
|
../2configs/man.nix
|
2016-03-05 12:57:46 +01:00
|
|
|
../2configs/nginx/public_html.nix
|
2015-11-25 01:51:35 +01:00
|
|
|
../2configs/pulse.nix
|
2016-02-01 17:32:04 +01:00
|
|
|
../2configs/retiolum.nix
|
2015-10-24 22:31:10 +02:00
|
|
|
../2configs/xserver
|
2015-07-16 06:34:33 +02:00
|
|
|
{
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
2015-07-24 17:34:08 +02:00
|
|
|
# stockholm
|
2015-07-16 06:34:33 +02:00
|
|
|
gnumake
|
2015-08-29 00:19:52 +02:00
|
|
|
hashPassword
|
2015-07-16 22:49:49 +02:00
|
|
|
parallel
|
2015-07-16 06:34:33 +02:00
|
|
|
|
|
|
|
# root
|
|
|
|
cryptsetup
|
|
|
|
|
|
|
|
# tv
|
2015-07-16 23:19:40 +02:00
|
|
|
bc
|
2015-07-16 06:34:33 +02:00
|
|
|
bind # dig
|
2016-02-03 19:39:00 +01:00
|
|
|
cac-api
|
2015-08-29 00:19:52 +02:00
|
|
|
dic
|
2015-07-16 06:34:33 +02:00
|
|
|
file
|
2015-09-25 22:56:28 +02:00
|
|
|
get
|
2016-06-30 01:34:25 +02:00
|
|
|
gnupg1compat
|
2015-07-16 06:34:33 +02:00
|
|
|
haskellPackages.hledger
|
|
|
|
htop
|
|
|
|
jq
|
|
|
|
mkpasswd
|
|
|
|
netcat
|
|
|
|
nix-repl
|
|
|
|
nmap
|
|
|
|
p7zip
|
2015-10-15 02:00:32 +02:00
|
|
|
push
|
2015-07-16 06:34:33 +02:00
|
|
|
qrencode
|
|
|
|
tmux
|
|
|
|
|
|
|
|
#ack
|
|
|
|
#apache-httpd
|
|
|
|
#ascii
|
|
|
|
#emacs
|
|
|
|
#es
|
|
|
|
#esniper
|
|
|
|
#gcc
|
|
|
|
#gptfdisk
|
|
|
|
#graphviz
|
|
|
|
#haskellPackages.cabal2nix
|
|
|
|
#haskellPackages.ghc
|
|
|
|
#haskellPackages.shake
|
|
|
|
#hdparm
|
|
|
|
#i7z
|
|
|
|
#iftop
|
|
|
|
#imagemagick
|
|
|
|
#inotifyTools
|
|
|
|
#iodine
|
|
|
|
#iotop
|
|
|
|
#lshw
|
|
|
|
#lsof
|
|
|
|
#minicom
|
|
|
|
#mtools
|
|
|
|
#ncmpc
|
|
|
|
#neovim
|
|
|
|
#nethogs
|
|
|
|
#nix-prefetch-scripts #cvs bug
|
|
|
|
#openssl
|
|
|
|
#openswan
|
|
|
|
#parted
|
|
|
|
#perl
|
|
|
|
#powertop
|
|
|
|
#ppp
|
|
|
|
#proot
|
|
|
|
#pythonPackages.arandr
|
|
|
|
#pythonPackages.youtube-dl
|
|
|
|
#racket
|
|
|
|
#rxvt_unicode-with-plugins
|
|
|
|
#scrot
|
|
|
|
#sec
|
|
|
|
#silver-searcher
|
|
|
|
#sloccount
|
|
|
|
#smartmontools
|
|
|
|
#socat
|
|
|
|
#sshpass
|
|
|
|
#strongswan
|
|
|
|
#sysdig
|
|
|
|
#sysstat
|
|
|
|
#tcpdump
|
|
|
|
#tlsdate
|
|
|
|
#unetbootin
|
|
|
|
#utillinuxCurses
|
|
|
|
#wvdial
|
|
|
|
#xdotool
|
|
|
|
#xkill
|
|
|
|
#xl2tpd
|
|
|
|
#xsel
|
2015-11-07 19:24:25 +01:00
|
|
|
|
|
|
|
unison
|
2015-07-16 06:34:33 +02:00
|
|
|
];
|
|
|
|
}
|
2015-07-11 16:55:22 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.initrd.luks = {
|
|
|
|
cryptoModules = [ "aes" "sha512" "xts" ];
|
|
|
|
devices = [
|
2017-01-08 13:07:58 +01:00
|
|
|
{ name = "wuca"; device = "/dev/sda2"; }
|
2015-07-11 16:55:22 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2017-01-08 13:07:58 +01:00
|
|
|
device = "/dev/mapper/wuvga-root";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = ["defaults" "noatime" "ssd" "compress=lzo"];
|
|
|
|
};
|
|
|
|
"/bku" = {
|
|
|
|
device = "/dev/mapper/wuvga-bku";
|
2015-07-11 16:55:22 +02:00
|
|
|
fsType = "btrfs";
|
2016-02-27 15:39:53 +01:00
|
|
|
options = ["defaults" "noatime" "ssd" "compress=lzo"];
|
2015-07-11 16:55:22 +02:00
|
|
|
};
|
|
|
|
"/home" = {
|
2017-01-08 13:07:58 +01:00
|
|
|
device = "/dev/mapper/wuvga-home";
|
2015-09-27 00:38:37 +02:00
|
|
|
fsType = "btrfs";
|
2016-02-27 15:39:53 +01:00
|
|
|
options = ["defaults" "noatime" "ssd" "compress=lzo"];
|
2015-07-11 16:55:22 +02:00
|
|
|
};
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/sda1";
|
|
|
|
};
|
|
|
|
"/tmp" = {
|
|
|
|
device = "tmpfs";
|
|
|
|
fsType = "tmpfs";
|
2016-02-27 15:39:53 +01:00
|
|
|
options = ["nosuid" "nodev" "noatime"];
|
2015-07-11 16:55:22 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-02-10 19:06:32 +01:00
|
|
|
krebs.nixpkgs.allowUnfreePredicate = pkg: hasPrefix "nvidia-x11-" pkg.name;
|
2015-07-11 16:55:22 +02:00
|
|
|
hardware.bumblebee.enable = true;
|
|
|
|
hardware.bumblebee.group = "video";
|
|
|
|
hardware.enableAllFirmware = true;
|
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
ethtool
|
2016-06-30 01:05:21 +02:00
|
|
|
tinc_pre
|
2015-07-11 16:55:22 +02:00
|
|
|
iptables
|
|
|
|
#jack2
|
|
|
|
];
|
|
|
|
|
2017-03-02 20:02:01 +01:00
|
|
|
security.wrappers = {
|
|
|
|
sendmail.source = "${pkgs.exim}/bin/sendmail"; # for cron
|
|
|
|
};
|
2015-07-11 16:55:22 +02:00
|
|
|
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
# see tmpfiles.d(5)
|
|
|
|
systemd.tmpfiles.rules = [
|
|
|
|
"d /tmp 1777 root root - -" # does this work with mounted /tmp?
|
|
|
|
];
|
|
|
|
|
|
|
|
services.udev.extraRules = ''
|
|
|
|
SUBSYSTEM=="net", ATTR{address}=="00:90:f5:da:aa:c3", NAME="en0"
|
|
|
|
SUBSYSTEM=="net", ATTR{address}=="a0:88:b4:1b:ae:6c", NAME="wl0"
|
|
|
|
|
|
|
|
# for jack
|
|
|
|
KERNEL=="rtc0", GROUP="audio"
|
|
|
|
KERNEL=="hpet", GROUP="audio"
|
|
|
|
'';
|
|
|
|
|
2017-01-08 13:07:58 +01:00
|
|
|
virtualisation.virtualbox.host.enable = true;
|
2015-07-11 16:55:22 +02:00
|
|
|
}
|