NixOS on ARM/Raspberry Pi 4: Difference between revisions
m Added instructions for audio through hdmi and fixed a typo in spi section Tags: Mobile edit Mobile web edit |
Added instructions for getting bluetooth atleast usable |
||
Line 262: | Line 262: | ||
}; | }; | ||
} | } | ||
</nowiki>}} | |||
=== Enabling Bluetooth === | |||
One might get bluetooth to work with this in the configuration file: | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
systemd.services.btattach = { | |||
before = [ "bluetooth.service" ]; | |||
after = [ "dev-ttyAMA0.device" ]; | |||
wantedBy = [ "multi-user.target" ]; | |||
serviceConfig = { | |||
ExecStart = "${pkgs.bluez}/bin/btattach -B /dev/ttyAMA0 -P bcm -S 3000000"; | |||
}; | |||
}; | |||
</nowiki>}} | </nowiki>}} | ||