From 13502edf3b3439799b86c34311a4060cc467e54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sun, 5 Jan 2025 22:50:18 +0100 Subject: [PATCH] Fix zytemp permission error --- curacao/co2meter/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"; };