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