summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorFlorian <florian.brandes@posteo.de>2023-01-29 09:11:48 +0100
committerGitHub <noreply@github.com>2023-01-29 16:11:48 +0800
commitb9e61893416c7b08266293d112ae1cff479c8b09 (patch)
tree7e87ce6bae787a2cdcacd35fcdd71b10a16661af /nixos
parent3fb81add3ec0a66fa5ad44e111c24301957b20d3 (diff)
Octoprint vcgencmd patch (#213201)
* octoprint: add tmpfile.d rule for read-access to /dev/vchiq for vcgencmd fixes #210629 Signed-off-by: Florian Brandes <florian.brandes@posteo.de> * Update pkgs/applications/misc/octoprint/default.nix --------- Signed-off-by: Florian Brandes <florian.brandes@posteo.de> Co-authored-by: Nick Cao <nickcao@nichi.co>
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/octoprint.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/octoprint.nix b/nixos/modules/services/misc/octoprint.nix
index c216c6fa2b77..43e0ce0c21d3 100644
--- a/nixos/modules/services/misc/octoprint.nix
+++ b/nixos/modules/services/misc/octoprint.nix
@@ -106,6 +106,9 @@ in
systemd.tmpfiles.rules = [
"d '${cfg.stateDir}' - ${cfg.user} ${cfg.group} - -"
+ # this will allow octoprint access to raspberry specific hardware to check for throttling
+ # read-only will not work: "VCHI initialization failed" error
+ "a /dev/vchiq - - - - u:octoprint:rw"
];
systemd.services.octoprint = {