Enable 1 wire on raspberrpy 4 (CM)

Hi Folks,

in Raspian you can run raspi-config, to enable 1-wire communications…
the file /boot/config.txt will contain the folloing statement

anybody know if / how it’s possible in nixos


See this comment Raspberry Pi4: GPIO Access and Hardware Revision Missing · Issue #122993 · NixOS/nixpkgs · GitHub and the one right below it. It’s possible but not as simple as raspi-config—there also might be a better way in 2024 I found this comment via searching nixpkgs repo