Fix zytemp permission error
This commit is contained in:
parent
6f8f877fb5
commit
13502edf3b
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -12,7 +11,7 @@ let
|
||||||
rev = "push-nurpouorqoyr"; # Humidity + availability support
|
rev = "push-nurpouorqoyr"; # Humidity + availability support
|
||||||
sha256 = "sha256-nOhyBAgvjeQh9ys3cBJOVR67SDs96zBzxIRGpaq4yoA=";
|
sha256 = "sha256-nOhyBAgvjeQh9ys3cBJOVR67SDs96zBzxIRGpaq4yoA=";
|
||||||
};
|
};
|
||||||
zytemp_mqtt = pkgs.python3Packages.buildPythonPackage rec {
|
zytemp_mqtt = pkgs.python3Packages.buildPythonPackage {
|
||||||
name = "zytemp_mqtt";
|
name = "zytemp_mqtt";
|
||||||
src = zytemp_mqtt_src;
|
src = zytemp_mqtt_src;
|
||||||
propagatedBuildInputs = with pkgs.python3Packages; [
|
propagatedBuildInputs = with pkgs.python3Packages; [
|
||||||
|
@ -33,6 +32,7 @@ let
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/lib/udev/rules.d
|
mkdir -p $out/lib/udev/rules.d
|
||||||
cp udev/90-usb-zytemp-permissions.rules $out/lib/udev/rules.d/90-usb-zytemp.rules
|
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
|
mqtt_host = "192.168.7.53"; # Ludwig
|
||||||
|
@ -74,7 +74,7 @@ in
|
||||||
SystemCallFilter = [
|
SystemCallFilter = [
|
||||||
"@system-service"
|
"@system-service"
|
||||||
"~@privileged"
|
"~@privileged"
|
||||||
"~@resouces"
|
"~@resources"
|
||||||
];
|
];
|
||||||
UMask = "0077";
|
UMask = "0077";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue