2024-03-12 22:08:02 -04:00
|
|
|
{
|
2024-04-07 22:16:33 -04:00
|
|
|
config,
|
2024-06-14 21:18:00 -04:00
|
|
|
inputs,
|
2024-04-07 22:16:33 -04:00
|
|
|
lib,
|
2024-06-14 21:18:00 -04:00
|
|
|
pkgs,
|
2024-04-07 22:16:33 -04:00
|
|
|
...
|
|
|
|
}: {
|
2024-06-14 21:18:00 -04:00
|
|
|
boot = {
|
2024-06-22 12:10:36 -04:00
|
|
|
extraModulePackages = with config.boot.kernelPackages; [
|
|
|
|
framework-laptop-kmod
|
|
|
|
];
|
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
initrd.availableKernelModules = ["nvme" "sd_mod" "thunderbolt" "usb_storage" "xhci_pci"];
|
2024-06-14 21:18:00 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
kernelModules = ["cros_ec" "cros_ec_lpcs"];
|
2024-06-22 12:10:36 -04:00
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
2024-06-14 21:18:00 -04:00
|
|
|
};
|
|
|
|
|
2024-06-22 12:10:36 -04:00
|
|
|
environment.systemPackages = [pkgs.framework-tool];
|
2024-06-14 21:18:00 -04:00
|
|
|
|
2024-06-22 12:10:36 -04:00
|
|
|
hardware = {
|
2024-06-14 21:18:00 -04:00
|
|
|
enableAllFirmware = true;
|
2024-06-22 12:10:36 -04:00
|
|
|
sensor.iio.enable = true;
|
2024-04-07 22:11:39 -04:00
|
|
|
};
|
|
|
|
|
2024-06-22 12:10:36 -04:00
|
|
|
services = {
|
|
|
|
fprintd.enable = true;
|
|
|
|
fwupd.enable = true;
|
2024-03-14 14:03:11 -04:00
|
|
|
|
2024-06-22 12:10:36 -04:00
|
|
|
udev.extraRules = ''
|
|
|
|
# Ethernet expansion card support
|
|
|
|
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
|
|
|
|
'';
|
|
|
|
};
|
2024-06-26 22:13:02 -04:00
|
|
|
|
|
|
|
ar.hardware = {
|
|
|
|
cpu.amd = true;
|
|
|
|
gpu.amd = true;
|
|
|
|
laptop = true;
|
|
|
|
ssd = true;
|
|
|
|
};
|
2024-03-12 22:08:02 -04:00
|
|
|
}
|