2023-08-17 09:31:46 +02:00
|
|
|
{ inputs, ... }:
|
|
|
|
{
|
2024-08-26 17:38:47 +02:00
|
|
|
# {{{ Imports
|
2023-08-17 09:31:46 +02:00
|
|
|
imports = with inputs.nixos-hardware.nixosModules; [
|
|
|
|
common-cpu-intel
|
2024-07-26 20:18:26 +02:00
|
|
|
# common-gpu-intel # This leads to a "prop ... defined twice" error
|
2023-08-17 09:31:46 +02:00
|
|
|
common-pc-laptop
|
|
|
|
common-pc-ssd
|
|
|
|
./generated.nix
|
|
|
|
];
|
2024-08-26 17:38:47 +02:00
|
|
|
# }}}
|
|
|
|
# {{{ Misc
|
|
|
|
hardware.enableAllFirmware = true;
|
|
|
|
hardware.opengl.enable = true;
|
|
|
|
hardware.opentabletdriver.enable = true;
|
|
|
|
hardware.keyboard.qmk.enable = true;
|
|
|
|
# }}}
|
|
|
|
# {{{ Power management
|
|
|
|
powerManagement.cpuFreqGovernor = "performance";
|
|
|
|
services.tlp = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
CPU_SCALING_GOVERNOR_ON_BAT = "performance";
|
|
|
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# }}}
|
2023-08-17 09:31:46 +02:00
|
|
|
}
|