2016-02-02 19:17:10 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2016-10-20 18:54:38 +00:00
|
|
|
with import <stockholm/lib>;
|
2015-07-11 14:55:22 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
2015-10-29 00:09:54 +00:00
|
|
|
../smartd.nix
|
2015-07-11 14:55:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.grub = {
|
|
|
|
device = "/dev/sda";
|
|
|
|
splashImage = null;
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
"ahci"
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.kernelModules = [
|
|
|
|
"kvm-intel"
|
|
|
|
"wl"
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.extraModulePackages = [
|
|
|
|
config.boot.kernelPackages.broadcom_sta
|
|
|
|
];
|
|
|
|
|
2015-10-29 00:09:54 +00:00
|
|
|
nix = {
|
|
|
|
buildCores = 2;
|
|
|
|
maxJobs = 2;
|
|
|
|
daemonIONiceLevel = 1;
|
|
|
|
daemonNiceLevel = 1;
|
|
|
|
};
|
|
|
|
|
2015-07-11 14:55:22 +00:00
|
|
|
services.logind.extraConfig = ''
|
|
|
|
HandleHibernateKey=ignore
|
|
|
|
HandleLidSwitch=ignore
|
|
|
|
HandlePowerKey=ignore
|
|
|
|
HandleSuspendKey=ignore
|
|
|
|
'';
|
|
|
|
|
2016-02-10 18:06:32 +00:00
|
|
|
krebs.nixpkgs.allowUnfreePredicate = pkg: hasPrefix "broadcom-sta-" pkg.name;
|
2015-07-11 14:55:22 +00:00
|
|
|
}
|