Add kernel module and enable auto-rotation

This commit is contained in:
panotaka
2023-12-31 09:35:32 -04:00
parent c26cb06b8a
commit 15f945e1cb
3 changed files with 7 additions and 16 deletions

View File

@@ -28,22 +28,6 @@ in {
# Bootloader configuration # Bootloader configuration
boot = { boot = {
kernelModules = ["kvm-intel"];
extraModulePackages = [];
initrd = {
kernelModules = [];
availableKernelModules = [
"xhci_pci"
"thunderbolt"
"vmd"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
};
loader = { loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
efi = { efi = {
@@ -65,4 +49,8 @@ in {
# Setup bluetooth # Setup bluetooth
hardware.bluetooth.enable = true; 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;
} }

View File

@@ -0,0 +1,2 @@
sensor:modalias:*
ACCEL_MOUNT_MATRIX=-0, -1, 0; -1, 0, 0; 0, 0, 1

View File

@@ -24,6 +24,7 @@
# Add system packages # Add system packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
fwupd
]; ];
# Enable fish shell # Enable fish shell