Make /dev/tenstorrent owned by the tenstorrent group

Hopefully to make the device useable without running docker with
--privileged
This commit is contained in:
Artturin 2024-11-21 00:23:56 +02:00
parent 441f4dc464
commit e5c7215b90

View file

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