Use udev-rules

See comment
This commit is contained in:
Artturin 2024-11-21 00:52:35 +02:00
parent e5c7215b90
commit 66bf540c3e

View file

@ -105,13 +105,15 @@
(pkgs.tt-system-tools or self.packages.${pkgs.hostPlatform.system}.system-tools) (pkgs.tt-system-tools or self.packages.${pkgs.hostPlatform.system}.system-tools)
]; ];
}; };
users.groups.tenstorrent = { };
services.udev = { services.udev = {
#packages = [ (pkgs.tt-udev-rules or self.packages.${pkgs.hostPlatform.system}.udev-rules) ]; packages = [ (pkgs.tt-udev-rules or self.packages.${pkgs.hostPlatform.system}.udev-rules) ];
extraRules = '' # NOTE: passing just the group does not work currently for docker so unneeded for now so use the udev-rules package for now
KERNEL=="tenstorrent*", MODE="0666", OWNER="root", GROUP="tenstorrent" # TT_METAL_HOME=$PWD docker run -v $PWD:/host --workdir /host -v /dev/hugepages-1G:/dev/hugepages-1G -v /dev/tenstorrent:/dev/tenstorrent -u :994 -v /etc/group:/etc/group:ro -it tt-metal bash
''; # extraRules = ''
# KERNEL=="tenstorrent*", MODE="0666", OWNER="root", GROUP="tenstorrent"
# '';
}; };
# users.groups.tenstorrent = { };
}; };
}; };