Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions framework12/nixOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sure it's loaded first by loading it from the initrd.
You can either use the nixos-hardware configuration mentioned above, or
configure it manually:

```
```nix
boot.initrd.kernelModules = [ "pinctrl_tigerlake" ];
```

Expand All @@ -26,13 +26,18 @@ boot.initrd.kernelModules = [ "pinctrl_tigerlake" ];
iio-sensor-proxy reads the accelerometer data from the kernel and passes it to the desktop environment via dbus.

Version 3.7 has a bug, making it incompatible with Framework 12.
NixOS 25.05 and NixOS 25.11 (unstable) are patched:
NixOS channels 25.05 and newer are patched:

- https://github.com/NixOS/nixpkgs/pull/427476
- https://github.com/NixOS/nixpkgs/pull/427853

To enable the accelerometer:

```nix
hardware.sensor.iio.enable = true;
```

If you haven't got the patched version yet, you can apply the following workaround:
If you're using an outdated NixOS version, you can apply the following workaround:

```nix
nixpkgs.overlays = [
Expand All @@ -45,3 +50,18 @@ nixpkgs.overlays = [
})
];
```

## Disabling the touchscreen

It is possible to entirely disable the touchscreen while maintaining stylus functionality.
This can be done with an udev rule:

```nix
services.libinput.enable = true; # If not already present
services.udev.extraRules = ''
ACTION=="add|change", ENV{ID_INPUT_TOUCHSCREEN}=="1", ENV{LIBINPUT_IGNORE_DEVICE}="1"
'';
```

This breaks auto-rotate using iio. A work-around for Gnome is to use `gnomeExtensions.screen-rotate`