Skip to content

Instantly share code, notes, and snippets.

View YellowOnion's full-sized avatar

Daniel Hill YellowOnion

  • Christchurch, New Zealand
  • 13:57 (UTC +12:00)
View GitHub Profile
#!/usr/bin/env nix-shell
#! nix-shell -i runghc -p 'ghc.withPackages (ps: [ ps.mustache ps.text ])'
{-# LANGUAGE OverloadedStrings #-}
import Text.Mustache
import qualified Data.Text.IO as T
data Maps = Maps [String] deriving (Show, Eq)
instance ToMustache Maps where
Filesystem: 927137d3-8864-4756-9c7e-3b9d1efff07b
Size: 34.2 TiB
Used: 9.95 TiB
Online reserved: 176 KiB
Data type Required/total Durability Devices
reserved: 1/1 [] 83.8 MiB
reserved: 1/2 [] 2.14 GiB
btree: 1/1 2 [nvme0n1p3] 82.2 GiB
user: 1/1 2 [nvme0n1p3] 1.67 GiB
Device: Power Button
Kernel: /dev/input/event7
Id: host:0000:0001
Group: 1
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap button map: n/a
Tap drag lock: n/a
wev
[ 9: wl_seat] name: seat0
[ 9: wl_seat] capabilities: pointer keyboard
[ 13:zwp_tablet_seat_v2] tablet_added: 4278190080
[4278190080: zwp_tablet_v2] name: Wacom Intuos BT M Pen
[4278190080: zwp_tablet_v2] id: vid: 0x056a pid: 0x0378
[4278190080: zwp_tablet_v2] path: /sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-2/1-2.1/1-2.1.1/1-2.1.1:1.0/0003:056A:0378.0006/input/input15/event9
[4278190080: zwp_tablet_v2] done
[ 13:zwp_tablet_seat_v2] pad_added: 4278190081
[4278190081:zwp_tablet_pad_v2] buttons: 4
This file has been truncated, but you can view the full file.
1098188: find library=libnixutil.so [0]; searching
1098188: search path=/nix/store/zkf2by751khwdihlia1ygw3r4iasagns-pipewire-1.4.5-jack/lib/glibc-hwcaps/x86-64-v3:/nix/store/zkf2by751khwdihlia1ygw3r4iasagns-pipewire-1.4.5-jack/lib/glibc-hwcaps/x86-64-v2:/nix/store/zkf2by751khwdihlia1ygw3r4iasagns-pipewire-1.4.5-jack/lib (LD_LIBRARY_PATH)
1098188: trying file=/nix/store/zkf2by751khwdihlia1ygw3r4iasagns-pipewire-1.4.5-jack/lib/glibc-hwcaps/x86-64-v3/libnixutil.so
1098188: trying file=/nix/store/zkf2by751khwdihlia1ygw3r4iasagns-pipewire-1.4.5-jack/lib/glibc-hwcaps/x86-64-v2/libnixutil.so
1098188: trying file=/nix/store/zkf2by751khwdihlia1ygw3r4iasagns-pipewire-1.4.5-jack/lib/libnixutil.so
1098188: search path=/nix/store/w0sz6vzj889m03wys6mbra4fxmvlhszg-nix-2.28.4/lib/glibc-hwcaps/x86-64-v3:/nix/store/w0sz6vzj889m03wys6mbra4fxmvlhszg-nix-2.28.4/lib/glibc-hwcaps/x86-64-v2:/nix/store/w0sz6vzj889m03wys6mbra4fxmvlhszg-nix-2.28.4/lib:/nix/store/i5zd3ha7wjnxnshsqisqarm8gxrfgc70-boehm-gc-8.2.8
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>win10</name>
<uuid>b2805d8d-7ac4-4fd1-9ec0-3ae0ee75dba5</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit='KiB'>16777216</memory>
<currentMemory unit='KiB'>16777216</currentMemory>
Jun 10 06:09:29 Purple-Sunrise kernel: Linux version 6.15.1 (nixbld@localhost) (gcc (GCC) 14.2.1 20250322, GNU ld (GNU Binutils) 2.44) #1-NixOS SMP PREEMPT_DYNAMIC Wed Jun 4 12:46:27 UTC 2025
<snip/>
Jun 23 18:27:09 Purple-Sunrise kernel: amdgpu 0000:08:00.0: amdgpu: Dumping IP State
Jun 23 18:27:09 Purple-Sunrise kernel: amdgpu 0000:08:00.0: amdgpu: Dumping IP State Completed
Jun 23 18:27:09 Purple-Sunrise kernel: amdgpu 0000:08:00.0: amdgpu: [drm] AMDGPU device coredump file has been created
Jun 23 18:27:09 Purple-Sunrise kernel: amdgpu 0000:08:00.0: amdgpu: [drm] Check your /sys/class/drm/card1/device/devcoredump/data
Jun 23 18:27:09 Purple-Sunrise kernel: amdgpu 0000:08:00.0: amdgpu: ring gfx_0.0.0 timeout, signaled seq=192590633, emitted seq=192590635
Jun 23 18:27:09 Purple-Sunrise kernel: amdgpu 0000:08:00.0: amdgpu: Process information: process sway pid 324208 thread sway:cs0 pid 324221
Jun 23 18:27:09 Purple-Sunrise kernel: amdgpu 0000:08:00.0: amdgpu: Starting gfx_0.0.0 ring reset
Jun 23 18:27:09 Pu
Device: (unknown device)
External UUID: 927137d3-8864-4756-9c7e-3b9d1efff07b
Internal UUID: fd7fc5be-7a90-44e2-8756-3d66ff90d8e8
Magic number: c68573f6-4e1a-45ca-8265-f57f48ba6d81
Device index: 0
Label: root
Version: 1.25: extent_flags
Incompatible features allowed: 0.0: (unknown version)
Incompatible features in use: 0.0: (unknown version)
Version upgrade complete: 1.25: extent_flags
PID: 472975 (.blender-wrappe)
UID: 1000 (daniel)
GID: 100 (users)
Signal: 11 (SEGV)
Timestamp: Thu 2025-06-12 11:36:44 NZST (49min ago)
Command Line: ./result/bin/blender --python-use-system-env
Executable: /nix/store/7wzhlpzpfzcrqxdg9ypdwlqb9bcfz069-blender-4.5/bin/.blender-wrapped
Control Group: /user.slice/user-1000.slice/[email protected]/tmux-spawn-e2102816-c00d-4c15-99d5-8e90a7d88830.scope
Unit: [email protected]
User Unit: tmux-spawn-e2102816-c00d-4c15-99d5-8e90a7d88830.scope
"context.modules" = [
{ name = libpipewire-module-filter-chain
args = {
node.description = "AKG K702 Headphones"
node.link-group = "group-sink"
filter.graph = {
nodes = [{
type = builtin
label = convolver
name = convL