about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/hardware/t100ha/default.nix20
-rw-r--r--modules/module-list.nix1
2 files changed, 21 insertions, 0 deletions
diff --git a/modules/hardware/t100ha/default.nix b/modules/hardware/t100ha/default.nix
new file mode 100644
index 00000000..d5f2138e
--- /dev/null
+++ b/modules/hardware/t100ha/default.nix
@@ -0,0 +1,20 @@
+{ config, pkgs, lib, ... }:
+
+let
+  cfg = config.vuizvui.hardware.t100ha;
+  desc = "hardware support for the ASUS T100HA convertible";
+
+in {
+  options.vuizvui.hardware.t100ha.enable = lib.mkEnableOption desc;
+
+  config = lib.mkIf cfg.enable {
+    # Needed for booting from MMC:
+    boot.initrd.availableKernelModules = [
+      "xhci_pci" "sdhci_acpi" "mmc_block"
+    ];
+    # It's a CherryTrail SoC, so we want to have the latest and greatest:
+    boot.kernelPackages = pkgs.linuxPackages_latest;
+    # By default the console is rotated by 90 degrees to the right.
+    boot.kernelParams = [ "fbcon=rotate:3" ];
+  };
+}
diff --git a/modules/module-list.nix b/modules/module-list.nix
index dbba2a01..47d82810 100644
--- a/modules/module-list.nix
+++ b/modules/module-list.nix
@@ -1,4 +1,5 @@
 [
+  ./hardware/t100ha
   ./profiles/common.nix
   ./profiles/tests.nix
   ./services/multipath-vpn.nix