2023-12-15 15:18:36 +00:00
|
|
|
{...}: {
|
2023-05-16 19:10:41 +00:00
|
|
|
# hardware
|
|
|
|
hardware = {
|
|
|
|
enableRedistributableFirmware = true;
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# logind configuration
|
|
|
|
services.logind = {
|
|
|
|
lidSwitch = "ignore";
|
|
|
|
extraConfig = ''
|
|
|
|
HandlePowerKey=suspend
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
# tlp, power management
|
|
|
|
services.tlp.enable = true;
|
|
|
|
|
2023-06-19 18:50:13 +00:00
|
|
|
# thermald, controls temperature
|
|
|
|
services.thermald.enable = true;
|
|
|
|
|
2023-05-16 19:10:41 +00:00
|
|
|
# bluetooth
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
services.blueman.enable = true;
|
|
|
|
|
|
|
|
# backlight intensity
|
|
|
|
programs.light.enable = true;
|
2023-06-19 18:50:13 +00:00
|
|
|
|
2023-12-28 21:42:54 +00:00
|
|
|
# partitions and filesystems
|
2023-12-15 15:18:36 +00:00
|
|
|
imports = [
|
|
|
|
./partitions.nix
|
|
|
|
];
|
2023-05-16 19:10:41 +00:00
|
|
|
}
|