Add kernel module and enable auto-rotation
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
2
hosts/Blackbird/sensor.hwdb
Normal file
2
hosts/Blackbird/sensor.hwdb
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
sensor:modalias:*
|
||||||
|
ACCEL_MOUNT_MATRIX=-0, -1, 0; -1, 0, 0; 0, 0, 1
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user