fix: use libraspberrypi instead of raspberrypi-tools for pinctrl

This commit is contained in:
2026-06-16 19:07:34 -04:00
parent 1d50b6455d
commit b9e89ce537

View File

@@ -21,7 +21,7 @@ let
applyRailsScript = pkgs.writeShellScript "apply-aio-v2-rails" (
''
set -e
PINCTRL=${pkgs.raspberrypi-tools}/bin/pinctrl
PINCTRL=${pkgs.libraspberrypi}/bin/pinctrl
''
+ concatStringsSep "" (mapAttrsToList (name: pin: ''
if [ "${if cfg.bootRails.${name} then "1" else "0"}" = "1" ]; then
@@ -123,7 +123,7 @@ in {
# Package the aiov2_ctl tool + pinctrl
environment.systemPackages = with pkgs; [
cfg.package
raspberrypi-tools # provides pinctrl
libraspberrypi # provides pinctrl
];
# Boot rail systemd oneshot service