| 2 Nov 2025 |
Sofie 🏳️⚧️ (she/her) | does anybody have experience with the rpi4 and screens?
https://github.com/nvmd/nixos-raspberrypi
Hello,
I have been having issues the past few months with using https://www.waveshare.com/wiki/5inch_DSI_LCD on Raspberry Pi 4 with NixOS.
I don't even know anymore what would cause libinput to not recognize the device?
I have imported all the modules and added
hardware.raspberry-pi.config.all.dt-overlays.vc4-kms-dsi-waveshare-800x480enable = true;
# Do not edit!
# This configuration file is generated from NixOS configuration
# options `hardware.raspberry-pi.config`.
# Any manual changes will be overwritten on the next configuration
# switch.
[all]
arm_64bit=1
arm_boost=1
avoid_warnings=1
camera_auto_detect=1
disable_fw_kms_setup=1
disable_overscan=1
display_auto_detect=1
enable_uart=1
kernel=u-boot-rpi-arm64.bin
max_framebuffers=2
dtparam=audio=on
dtoverlay=vc4-kms-dsi-waveshare-800x480
dtoverlay=
dtoverlay=vc4-kms-v3d
dtoverlay=
[cm4]
otg_mode=1
[cm5]
dtoverlay=dwc2
dtparam=dr_mode=host
dtoverlay=
[root@cedarix:~]# ls -al /dev/input/
total 0
drwxr-xr-x 2 root root 60 Jan 1 1970 .
drwxr-xr-x 19 root root 3960 Nov 2 14:14 ..
crw-rw---- 1 root input 13, 63 Nov 2 14:14 mice
| 12:30:20 |
Sofie 🏳️⚧️ (she/her) | Posting this here cause it's not NixOS | 12:30:43 |
Sofie 🏳️⚧️ (she/her) | 😭 | 12:30:46 |
| Odd [tchncs] changed their display name from oddlid to Odd [tchncs]. | 13:12:49 |
Sofie 🏳️⚧️ (she/her) | * | 13:39:10 |
Sofie 🏳️⚧️ (she/her) | This I on NixOS | 13:45:15 |
Sofie 🏳️⚧️ (she/her) | I had a typo 😭 | 13:45:23 |
Sofie 🏳️⚧️ (she/her) | * | 13:45:29 |
K900 | I would highly recommend using mainline | 14:03:21 |
K900 | And not touching any of the nixos-hardware nonsense | 14:03:30 |
| tobiasvandriessel joined the room. | 14:03:50 |
hexa | yeah, it is fine to take inspiration from nixos-hardware, but I wouldn't import it in full 🙂 | 14:04:48 |
tobiasvandriessel | Hey Everyone, I'd like to request help and hope this is the right place to ask.
Problem
I've been encountering a cmake error when trying to switch to a new generation (just updates to packages from updated nixpkgs), and am aware this is being tracked here, but I'm wondering what I can do right now. Because, frankly, I can't update any of my packages as long as I get this error. And I can imagine that many users are facing this issue.
The error in short:
> CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
> Compatibility with CMake < 3.5 has been removed from CMake.
>
> Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
> to tell CMake that the project requires at least <min> but has been updated
> to work with policies introduced by <max> or earlier.
>
> Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
>
>
> -- Configuring incomplete, errors occurred!
For full logs, run 'nix log /nix/store/4w4b558kk5m3ij11ycxbm4pry3ss6m45-capnproto-1.0.2.drv'.
error: 1 dependencies of derivation '/nix/store/pfkvpc5is5yvdhrw6p14dm8m64lq28mb-lix-2.93.3-pre20250722-7ac20fc.drv' failed to build
What I've tried
I've tried to use a overlay for capnproto, but even though the overlay is seen by nix repl, it's not being applied. After trying for an hour last weekend, I gave up on that route.
Any advice? Thanks in advance! I've tried
| 14:27:34 |
tobiasvandriessel | * Hey Everyone, I'd like to request help and hope this is the right place to ask. Feel free to redirect me to a more appropriate place.
Problem
I've been encountering a cmake error when trying to switch to a new generation (just updates to packages from updated nixpkgs), and am aware this is being tracked here, but I'm wondering what I can do right now. Because, frankly, I can't update any of my packages as long as I get this error. And I can imagine that many users are facing this issue.
The error in short:
> CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
> Compatibility with CMake < 3.5 has been removed from CMake.
>
> Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
> to tell CMake that the project requires at least <min> but has been updated
> to work with policies introduced by <max> or earlier.
>
> Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
>
>
> -- Configuring incomplete, errors occurred!
For full logs, run 'nix log /nix/store/4w4b558kk5m3ij11ycxbm4pry3ss6m45-capnproto-1.0.2.drv'.
error: 1 dependencies of derivation '/nix/store/pfkvpc5is5yvdhrw6p14dm8m64lq28mb-lix-2.93.3-pre20250722-7ac20fc.drv' failed to build
What I've tried
I've tried to use a overlay for capnproto, but even though the overlay is seen by nix repl, it's not being applied. After trying for an hour last weekend, I gave up on that route.
Any advice? Thanks in advance! I've tried
| 14:28:10 |
tobiasvandriessel | * Hey Everyone, I'd like to request help and hope this is the right place to ask. Feel free to redirect me to a more appropriate place.
Problem
I've been encountering a cmake error when trying to switch to a new generation (just updates to packages from updated nixpkgs), and am aware this is being tracked here, but I'm wondering what I can do right now. Because, frankly, I can't update any of my packages as long as I get this error. And I can imagine that many users are facing this issue.
The error in short:
> CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
> Compatibility with CMake < 3.5 has been removed from CMake.
>
> Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
> to tell CMake that the project requires at least <min> but has been updated
> to work with policies introduced by <max> or earlier.
>
> Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
>
>
> -- Configuring incomplete, errors occurred!
For full logs, run 'nix log /nix/store/4w4b558kk5m3ij11ycxbm4pry3ss6m45-capnproto-1.0.2.drv'.
error: 1 dependencies of derivation '/nix/store/pfkvpc5is5yvdhrw6p14dm8m64lq28mb-lix-2.93.3-pre20250722-7ac20fc.drv' failed to build
What I've tried
I've tried to use a overlay for capnproto, but even though the overlay is seen by nix repl, it's not being applied. After trying for an hour last weekend, I gave up on that route.
Any advice? Thanks in advance! Tobias
| 14:28:48 |
raitobezarius | tobiasvandriessel can you share your config in how you use Lix? | 14:33:13 |
tobiasvandriessel | Sure thing! Let me start a thread here. | 14:35:25 |
Sofie 🏳️⚧️ (she/her) | this is not nixos-hardware | 14:39:07 |
Sofie 🏳️⚧️ (she/her) | 😭 | 14:39:10 |
Sofie 🏳️⚧️ (she/her) | https://discourse.nixos.org/t/cant-get-nixos-x-to-work-on-a-raspberry-pi-with-dsi-display/44532 | 14:40:20 |
tobiasvandriessel | Flake input
inputs = { inputs.nixpkgs.follows = "nixpkgs";
};
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.93.3-1.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
};
output:
outputs = { self, nixpkgs, home-manager, lix-module } @ inputs:
{
[...]
nixosConfigurations = {
nixos-tobias = lib.nixosSystem {
inherit system;
specialArgs = {inherit inputs outputs;};
modules = with self.nixosModules; [
[...]
lix-module.nixosModules.default
];
};
};
};
| 14:40:27 |
K900 | Yes it is | 14:41:00 |
tobiasvandriessel | And I know flakes are part of a hot debate, but for better or worse, I've always used it | 14:41:12 |
K900 | There is no "hardware.raspberry-pi" in nixpkgs | 14:41:12 |
Sofie 🏳️⚧️ (she/her) | they have reimplemented it | 14:41:29 |
Sofie 🏳️⚧️ (she/her) | nixos-rasperry-bi | 14:41:38 |
Sofie 🏳️⚧️ (she/her) | * | 14:41:42 |
Sofie 🏳️⚧️ (she/her) | * | 14:41:50 |
K900 | So another questionable repo with vendor stuff | 14:41:53 |
K900 | Cool | 14:41:54 |