diff --git a/hosts/scarab/default.nix b/hosts/scarab/default.nix index 2cacec7..bb81954 100644 --- a/hosts/scarab/default.nix +++ b/hosts/scarab/default.nix @@ -50,7 +50,20 @@ in sensor.iio.enable = true; }; - networking.networkmanager.unmanaged = [ "rndis0" "usb0" ]; + networking.networkmanager = { + enable = true; + unmanaged = [ "rndis0" "usb0" ]; + }; + + systemd.user.services.wireplumber.environment.WIREPLUMBER_CONFIG_DIR = pkgs.runCommand "wireplumber-config" {} '' + cp -a "${pkgs.wireplumber}/share/wireplumber" "$out" + chmod +w "$out" "$out/main.lua.d" + ln -s ${pkgs.fetchurl { + url = "https://gitlab.com/postmarketOS/pmaports/-/raw/0aa9524204e9c9c002c860b87c972bc2ebf025f3/device/community/soc-qcom-sdm845/51-qcom-sdm845.lua"; + hash = "sha256-56oNJJyuZZe1Iig1xskDuyazw3PbRZtmU/YRFUTqjwk="; + }} "$out/main.lua.d/51-qcom-sdm845.lua" + ''; + systemd.services.wireplumber.environment.WIREPLUMBER_CONFIG_DIR = config.systemd.user.services.wireplumber.environment.WIREPLUMBER_CONFIG_DIR; nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "oneplus-sdm845-firmware"