37 lines
767 B
Nix
37 lines
767 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
# Boot Options
|
|
boot.loader.grub.enable = lib.mkForce false;
|
|
boot.loader.generic-extlinux-compatible.enable = lib.mkForce true;
|
|
|
|
# tty Console
|
|
boot.kernelParams = [
|
|
"console=ttyS1,115200n8"
|
|
];
|
|
|
|
# Bluetooth
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
powerOnBoot = true;
|
|
settings = {
|
|
General = {
|
|
Experimental = true;
|
|
FastConnectable = true;
|
|
};
|
|
Policy = {
|
|
AutoEnable = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
#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";
|
|
# };
|
|
#};
|
|
|
|
}
|