From eb2a4fcda162f8d1b14eaf788fca8c21866141b6 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Wed, 19 Jun 2024 19:42:58 -0500 Subject: [PATCH] update pi4 --- hosts/pi4/configuration.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/hosts/pi4/configuration.nix b/hosts/pi4/configuration.nix index 8a67f05..f5a1cf5 100644 --- a/hosts/pi4/configuration.nix +++ b/hosts/pi4/configuration.nix @@ -32,7 +32,7 @@ in ]; boot = { - kernelPackages = pkgs.linuxKernel.packages.linux_rpi4; + kernelPackages = pkgs.linuxPackages_latest; initrd.availableKernelModules = [ "xhci_pci" "usbhid" @@ -71,14 +71,14 @@ in }; }; - # 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"; - # }; - # }; + 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"; + }; + }; environment.systemPackages = with pkgs; [ vim @@ -105,8 +105,6 @@ in virtualisation.docker.enable = true; - console.enable = false; - # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. #