stockholm/tv/1systems/wu/config.nix

65 lines
1.7 KiB
Nix
Raw Normal View History

2016-10-20 18:54:38 +00:00
with import <stockholm/lib>;
2017-08-01 20:37:41 +00:00
{ config, pkgs, ... }: {
2015-07-11 14:55:22 +00:00
krebs.build.host = config.krebs.hosts.wu;
2015-07-11 14:55:22 +00:00
imports = [
<stockholm/tv>
<stockholm/tv/2configs/hw/w110er.nix>
<stockholm/tv/2configs/exim-retiolum.nix>
<stockholm/tv/2configs/gitrepos.nix>
<stockholm/tv/2configs/im.nix>
<stockholm/tv/2configs/mail-client.nix>
<stockholm/tv/2configs/man.nix>
<stockholm/tv/2configs/nginx/public_html.nix>
<stockholm/tv/2configs/pulse.nix>
<stockholm/tv/2configs/retiolum.nix>
<stockholm/tv/2configs/xserver>
2015-07-11 14:55:22 +00:00
];
boot.initrd.luks = {
cryptoModules = [ "aes" "sha512" "xts" ];
devices = [
2017-01-08 12:07:58 +00:00
{ name = "wuca"; device = "/dev/sda2"; }
2015-07-11 14:55:22 +00:00
];
};
fileSystems = {
"/" = {
2017-01-08 12:07:58 +00:00
device = "/dev/mapper/wuvga-root";
fsType = "btrfs";
options = ["defaults" "noatime" "ssd" "compress=lzo"];
};
"/bku" = {
device = "/dev/mapper/wuvga-bku";
2015-07-11 14:55:22 +00:00
fsType = "btrfs";
options = ["defaults" "noatime" "ssd" "compress=lzo"];
2015-07-11 14:55:22 +00:00
};
"/home" = {
2017-01-08 12:07:58 +00:00
device = "/dev/mapper/wuvga-home";
2015-09-26 22:38:37 +00:00
fsType = "btrfs";
options = ["defaults" "noatime" "ssd" "compress=lzo"];
2015-07-11 14:55:22 +00:00
};
"/boot" = {
device = "/dev/sda1";
};
};
krebs.nixpkgs.allowUnfreePredicate = pkg: hasPrefix "nvidia-x11-" pkg.name;
2015-07-11 14:55:22 +00:00
hardware.bumblebee.enable = true;
hardware.bumblebee.group = "video";
hardware.enableRedistributableFirmware= true;
2015-07-11 14:55:22 +00:00
hardware.opengl.driSupport32Bit = true;
services.printing.enable = true;
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"
'';
}