mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 20:09:17 -05:00
36 lines
753 B
Nix
36 lines
753 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
boot = {
|
||
|
extraModulePackages = with config.boot.kernelPackages; [
|
||
|
framework-laptop-kmod
|
||
|
];
|
||
|
|
||
|
kernelModules = [
|
||
|
# https://github.com/DHowett/framework-laptop-kmod?tab=readme-ov-file#usage
|
||
|
"cros_ec_lpcs"
|
||
|
"cros_ec"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
environment.systemPackages = [pkgs.framework-tool] ++ lib.optional (pkgs ? "fw-ectool") pkgs.fw-ectool;
|
||
|
|
||
|
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"
|
||
|
'';
|
||
|
};
|
||
|
}
|