diff --git a/curacao/co2meter/default.nix b/curacao/co2meter/default.nix index e90634f..17433c2 100644 --- a/curacao/co2meter/default.nix +++ b/curacao/co2meter/default.nix @@ -1,7 +1,6 @@ { pkgs, lib, - config, ... }: let @@ -12,7 +11,7 @@ let rev = "push-nurpouorqoyr"; # Humidity + availability support sha256 = "sha256-nOhyBAgvjeQh9ys3cBJOVR67SDs96zBzxIRGpaq4yoA="; }; - zytemp_mqtt = pkgs.python3Packages.buildPythonPackage rec { + zytemp_mqtt = pkgs.python3Packages.buildPythonPackage { name = "zytemp_mqtt"; src = zytemp_mqtt_src; propagatedBuildInputs = with pkgs.python3Packages; [ @@ -33,6 +32,7 @@ let installPhase = '' mkdir -p $out/lib/udev/rules.d cp udev/90-usb-zytemp-permissions.rules $out/lib/udev/rules.d/90-usb-zytemp.rules + sed -i 's|"usb"|"hidraw"|' $out/lib/udev/rules.d/90-usb-zytemp.rules ''; }; mqtt_host = "192.168.7.53"; # Ludwig @@ -74,7 +74,7 @@ in SystemCallFilter = [ "@system-service" "~@privileged" - "~@resouces" + "~@resources" ]; UMask = "0077"; };