diff --git a/hosts/Blackbird/default.nix b/hosts/Blackbird/default.nix index 72ceb5d..0747446 100644 --- a/hosts/Blackbird/default.nix +++ b/hosts/Blackbird/default.nix @@ -49,4 +49,8 @@ in { # Setup bluetooth hardware.bluetooth.enable = true; + + # Setup auto-rotaion + hardware.sensor.iio.enable = true; + environment.etc."/etc/udev/hwdb.d/61-gpd-pocket3-sensor-local.hwdb".source = ./sensor.hwdb; } diff --git a/hosts/Blackbird/sensor.hwdb b/hosts/Blackbird/sensor.hwdb new file mode 100644 index 0000000..e006db7 --- /dev/null +++ b/hosts/Blackbird/sensor.hwdb @@ -0,0 +1,2 @@ +sensor:modalias:* + ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 1, 0, 0 \ No newline at end of file