From e5c7215b904b5ca452aa1cfededcce2166cfad8b Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 21 Nov 2024 00:23:56 +0200 Subject: [PATCH] Make /dev/tenstorrent owned by the tenstorrent group Hopefully to make the device useable without running docker with --privileged --- flake.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 5127653..cf1a07d 100644 --- a/flake.nix +++ b/flake.nix @@ -105,9 +105,13 @@ (pkgs.tt-system-tools or self.packages.${pkgs.hostPlatform.system}.system-tools) ]; }; - services.udev.packages = [ - (pkgs.tt-udev-rules or self.packages.${pkgs.hostPlatform.system}.udev-rules) - ]; + users.groups.tenstorrent = { }; + services.udev = { + #packages = [ (pkgs.tt-udev-rules or self.packages.${pkgs.hostPlatform.system}.udev-rules) ]; + extraRules = '' + KERNEL=="tenstorrent*", MODE="0666", OWNER="root", GROUP="tenstorrent" + ''; + }; }; };