Skip to content

Instantly share code, notes, and snippets.

View Krutonium's full-sized avatar
🎮
Streaming

Krutonium Krutonium

🎮
Streaming
View GitHub Profile
#!/usr/bin/env nix-shell
#! nix-shell -i bash
#! nix-shell -p bash lshw
convert_bus_id() {
local raw="${1#*@}" # remove pci@
IFS=':.'
read -r domain bus slot func <<< "$raw"
echo "PCI:$((16#$bus)):$((16#$slot)):$((16#$func))"
}
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1757068644,
"narHash": "sha256-NOrUtIhTkIIumj1E/Rsv1J37Yi3xGStISEo8tZm3KW4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8eb28adfa3dc4de28e792e3bf49fcf9007ca8ac9",
"type": "github"