Fix zytemp permission error

This commit is contained in:
Geoffrey Frogeye 2025-01-05 22:50:18 +01:00
parent 6f8f877fb5
commit 13502edf3b
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -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";
};