2018-05-15 13:46:41 +00:00
|
|
|
{ lib, pkgs, ... }:
|
2018-05-15 16:54:18 +00:00
|
|
|
|
2020-07-26 10:59:49 +00:00
|
|
|
{
|
|
|
|
# 4K screen, use bigger console font
|
|
|
|
# i18n.consoleFont deprecated and obsolete in >=20.03
|
|
|
|
# hardware-configuration.nix generates console.font
|
|
|
|
i18n.consoleFont = lib.mkIf (lib.versionOlder (lib.versions.majorMinor lib.version) "20.03") (lib.mkDefault "latarcyrheb-sun32");
|
2018-05-15 13:46:41 +00:00
|
|
|
imports = [
|
2018-05-15 16:54:18 +00:00
|
|
|
../../../common/cpu/intel/kaby-lake
|
2018-05-15 13:46:41 +00:00
|
|
|
../../../common/pc/laptop
|
|
|
|
];
|
|
|
|
|
2018-05-15 16:54:18 +00:00
|
|
|
boot.blacklistedKernelModules = [ "psmouse" ]; # touchpad goes over i2c
|
2018-05-15 13:46:41 +00:00
|
|
|
|
2018-05-15 16:54:18 +00:00
|
|
|
# TODO: decide on boot loader policy
|
|
|
|
boot.loader = {
|
|
|
|
efi.canTouchEfiVariables = lib.mkDefault true;
|
|
|
|
systemd-boot.enable = lib.mkDefault true;
|
2018-05-15 13:46:41 +00:00
|
|
|
};
|
2019-10-27 08:02:50 +00:00
|
|
|
|
2018-05-15 16:54:18 +00:00
|
|
|
hardware.firmware = lib.mkBefore [ pkgs.qca6174-firmware ];
|
2018-05-15 13:46:41 +00:00
|
|
|
|
2018-05-15 16:54:18 +00:00
|
|
|
# TODO: upstream to NixOS/nixpkgs
|
|
|
|
nixpkgs.overlays = [(final: previous: {
|
|
|
|
qca6174-firmware = final.callPackage ./qca6174-firmware.nix {};
|
|
|
|
})];
|
2019-10-27 08:02:50 +00:00
|
|
|
|
|
|
|
# This will save you money and possibly your life!
|
|
|
|
services.thermald.enable = true;
|
2018-05-15 13:46:41 +00:00
|
|
|
}
|