infrastructure/hosts/aurum/system/hardware/default.nix

51 lines
1 KiB
Nix
Raw Normal View History

{pkgs, ...}: {
2024-01-15 15:50:55 +00:00
# hardware
hardware = {
enableRedistributableFirmware = true;
graphics.enable = true;
2024-01-15 15:50:55 +00:00
};
# logind configuration
services.logind = {
lidSwitch = "ignore";
extraConfig = ''
HandlePowerKey=suspend
'';
};
# tlp, power management
services.tlp.enable = true;
# thermald, controls temperature
services.thermald.enable = true;
# bluetooth
hardware.bluetooth.enable = true;
services.blueman.enable = true;
# backlight intensity
programs.light.enable = true;
imports = [
./partitions.nix
];
# enable finger print sensor.
# this has to be configured with `sudo fprintd-enroll <username>`.
services.fprintd.enable = true;
services.fprintd.tod.enable = true;
services.fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix;
# Allows for updating firmware via `fwupdmgr`.
services.fwupd.enable = true;
2024-06-16 13:49:52 +00:00
# webcam
# hardware.firmware = [
# pkgs.ivsc-firmware
# ];
# hardware.ipu6 = {
# enable = true;
# platform = "ipu6ep";
# };
2024-01-15 15:50:55 +00:00
}