mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-08 12:09:40 +01:00
17 lines
453 B
Nix
17 lines
453 B
Nix
{ config, lib, ...}:
|
|
with lib;
|
|
{
|
|
imports = [
|
|
./..
|
|
../../../common/cpu/amd
|
|
../../../common/cpu/amd/pstate.nix
|
|
../../../common/gpu/amd
|
|
./bmi260
|
|
];
|
|
|
|
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" ];
|
|
hardware.sensor.iio.enable = mkIf config.hardware.sensor.iio.bmi260.enable true;
|
|
}
|