2023-12-25 21:14:17 +01:00
|
|
|
{ config, lib, ...}:
|
2023-12-25 02:04:38 +01:00
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./..
|
|
|
|
../../../common/cpu/amd
|
|
|
|
../../../common/cpu/amd/pstate.nix
|
|
|
|
../../../common/gpu/amd
|
2024-02-11 07:46:44 +01:00
|
|
|
./bmi260
|
2023-12-25 02:04:38 +01:00
|
|
|
];
|
2024-02-11 07:46:44 +01: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 07:48:43 +01:00
|
|
|
hardware.sensor.iio.enable = mkIf config.hardware.sensor.iio.bmi260.enable true;
|
2023-12-25 02:04:38 +01:00
|
|
|
}
|