2022-12-09 01:31:56 +01:00
|
|
|
with import ./lib;
|
|
|
|
{ config, pkgs, ... }: {
|
2015-07-11 16:55:22 +02:00
|
|
|
imports = [
|
2015-10-29 01:09:54 +01:00
|
|
|
../smartd.nix
|
2021-12-10 23:43:44 +01:00
|
|
|
|
|
|
|
{
|
2023-01-06 21:27:58 +01:00
|
|
|
nix.settings.cores = 2;
|
|
|
|
nix.settings.max-jobs = 2;
|
2021-12-10 23:43:44 +01:00
|
|
|
}
|
|
|
|
(if lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.11" then {
|
|
|
|
nix.daemonCPUSchedPolicy = "batch";
|
|
|
|
nix.daemonIOSchedPriority = 1;
|
|
|
|
} else {
|
|
|
|
nix.daemonIONiceLevel = 1;
|
|
|
|
nix.daemonNiceLevel = 1;
|
|
|
|
})
|
2015-07-11 16:55:22 +02: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
|
|
|
|
];
|
|
|
|
|
|
|
|
services.logind.extraConfig = ''
|
|
|
|
HandleHibernateKey=ignore
|
|
|
|
HandleLidSwitch=ignore
|
|
|
|
HandlePowerKey=ignore
|
|
|
|
HandleSuspendKey=ignore
|
|
|
|
'';
|
|
|
|
|
2019-09-04 20:17:56 +02:00
|
|
|
krebs.nixpkgs.allowUnfreePredicate = pkg: packageName pkg == "broadcom-sta";
|
2021-02-15 14:00:47 +01:00
|
|
|
|
|
|
|
tv.hw.screens.primary.width = 1366;
|
|
|
|
tv.hw.screens.primary.height = 768;
|
2015-07-11 16:55:22 +02:00
|
|
|
}
|