2019-07-18 21:19:31 +02:00
|
|
|
{ lib, ... }:
|
2021-04-25 07:03:51 +02:00
|
|
|
{
|
2019-07-18 21:19:31 +02:00
|
|
|
imports = [
|
|
|
|
../../../common/cpu/intel
|
|
|
|
../../../common/pc/laptop
|
2019-08-17 08:08:08 +02:00
|
|
|
../../../common/pc/ssd
|
2019-07-18 21:19:31 +02:00
|
|
|
];
|
|
|
|
|
2020-02-02 02:43:01 +01:00
|
|
|
# Set to true for just the first run, then disable it.
|
|
|
|
# boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
|
2019-07-18 21:19:31 +02:00
|
|
|
|
2020-02-07 15:55:01 +01:00
|
|
|
# Load GPU drivers.
|
|
|
|
# hardware.bumblebee.enable = lib.mkDefault true;
|
|
|
|
|
|
|
|
# High DPI for X users. 175 "looks reasonable" but I didn't do the actual DPI
|
|
|
|
# calculation.
|
|
|
|
# services.xserver.dpi = lib.mkDefault 175;
|
|
|
|
|
2020-02-02 03:11:31 +01:00
|
|
|
# Earlier font-size setup
|
|
|
|
console.earlySetup = true;
|
|
|
|
|
|
|
|
# Prevent small EFI partiion from filling up
|
|
|
|
boot.loader.grub.configurationLimit = 10;
|
|
|
|
|
2019-07-22 03:49:13 +02:00
|
|
|
# The 48.ucode causes the Killer wifi card to crash.
|
|
|
|
# The iwlfwifi-cc-a0-46.ucode works perfectly
|
2020-02-09 09:40:38 +01:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
|
|
|
firmwareLinuxNonfree = super.firmwareLinuxNonfree.overrideAttrs (old: {
|
2020-02-18 12:13:15 +01:00
|
|
|
src = super.fetchgit {
|
|
|
|
url =
|
|
|
|
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
|
2020-02-09 09:40:38 +01:00
|
|
|
rev = "bf13a71b18af229b4c900b321ef1f8443028ded8";
|
|
|
|
sha256 = "1dcaqdqyffxiadx420pg20157wqidz0c0ca5mrgyfxgrbh6a4mdj";
|
|
|
|
};
|
|
|
|
postInstall = ''
|
|
|
|
rm $out/lib/firmware/iwlwifi-cc-a0-48.ucode
|
|
|
|
'';
|
|
|
|
outputHash = "0dq48i1cr8f0qx3nyq50l9w9915vhgpwmwiw3b4yhisbc3afyay4";
|
|
|
|
});
|
|
|
|
})
|
|
|
|
];
|
2019-07-18 21:19:31 +02:00
|
|
|
}
|