From 711a30e78b9cc4ff59726163f9a434e0ae0dfdf9 Mon Sep 17 00:00:00 2001 From: user Date: Sun, 26 May 2024 05:15:30 +0000 Subject: [PATCH] finished for now.. --- rpi-4/REAMDE.md | 14 ++++++++++++++ rpi-4/config/nixos/misc.nix | 13 +++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/rpi-4/REAMDE.md b/rpi-4/REAMDE.md index 28be663..9577c6e 100644 --- a/rpi-4/REAMDE.md +++ b/rpi-4/REAMDE.md @@ -3,6 +3,8 @@ getting an initial build with: https://github.com/Robertof/nixos-docker-sd-image-builder +useful repo: https://git.2li.ch/Nebucatnetzer/nixos/src/commit/1a3c748c8e5466359c92cfd1d81954199c5d69be/modules/hardware/raspi4 + nix flake init --experimental-features 'nix-command flakes' @@ -19,3 +21,15 @@ just wait for fucking 5 seconds until the audio server has started... ...need to run.. to make it work after autostart?: pactl list modules | grep module-native-protocol-tcp + + +todo: +rpi audio: fiverr guy schreiben (sobald 2. gehalt da ist) +-> er soll bluetooth einrichten +und den autostart fixen + +ich bin zu blöd dafür + +vllt noch pipewire etc. mach es schön + + diff --git a/rpi-4/config/nixos/misc.nix b/rpi-4/config/nixos/misc.nix index 292d4f4..c27f263 100644 --- a/rpi-4/config/nixos/misc.nix +++ b/rpi-4/config/nixos/misc.nix @@ -23,12 +23,17 @@ boot.extraModulePackages = [ ]; boot.kernelParams = [ ]; - hardware.enableRedistributableFirmware = true; - hardware.pulseaudio = { + + hardware = { + bluetooth.enable = true; + #deviceTree.filter = "bcm2711-rpi-*.dtb"; ?? + + enableRedistributableFirmware = true; + pulseaudio = { extraConfig = "load-module module-native-protocol-tcp port=4713 listen=0.0.0.0 auth-anonymous=true"; enable = true; - }; - + }; + }; environment.systemPackages = with pkgs; [