mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 18:11:55 -05:00
45 lines
890 B
Nix
45 lines
890 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
boot = {
|
|
extraModulePackages = with config.boot.kernelPackages; [
|
|
framework-laptop-kmod
|
|
];
|
|
|
|
initrd.availableKernelModules = ["nvme" "sd_mod" "thunderbolt" "usb_storage" "xhci_pci"];
|
|
|
|
kernelModules = ["cros_ec" "cros_ec_lpcs"];
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
};
|
|
|
|
environment.systemPackages = [pkgs.framework-tool];
|
|
|
|
hardware = {
|
|
enableAllFirmware = true;
|
|
sensor.iio.enable = true;
|
|
};
|
|
|
|
services = {
|
|
fprintd.enable = true;
|
|
fwupd.enable = true;
|
|
|
|
udev.extraRules = ''
|
|
# Ethernet expansion card support
|
|
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
|
|
'';
|
|
};
|
|
|
|
ar.hardware = {
|
|
enable = true;
|
|
cpu.amd = true;
|
|
gpu.amd = true;
|
|
laptop = true;
|
|
ssd = true;
|
|
sound = true;
|
|
};
|
|
}
|