2023-12-25 15:14:17 -05:00
|
|
|
{ config, lib, ...}:
|
2023-12-24 20:04:38 -05:00
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./..
|
|
|
|
../../../common/cpu/amd
|
|
|
|
../../../common/cpu/amd/pstate.nix
|
|
|
|
../../../common/gpu/amd
|
2024-02-11 01:46:44 -05:00
|
|
|
./bmi260
|
2023-12-24 20:04:38 -05:00
|
|
|
];
|
2024-02-11 01:46:44 -05:00
|
|
|
|
|
|
|
hardware.sensor.iio.bmi260.enable = lib.mkDefault true;
|
|
|
|
|
|
|
|
#see README
|
|
|
|
boot.blacklistedKernelModules = mkIf config.hardware.sensor.iio.bmi260.enable [ "bmi160_spi" "bmi160_i2c" "bmi160_core" ];
|
2024-02-11 01:48:43 -05:00
|
|
|
hardware.sensor.iio.enable = mkIf config.hardware.sensor.iio.bmi260.enable true;
|
2023-12-24 20:04:38 -05:00
|
|
|
}
|