Skip to content

Instantly share code, notes, and snippets.

View CertainLach's full-sized avatar

Lach CertainLach

View GitHub Profile
import { audio, image } from '@interpreter/media-conversions';
import { parseableZod, z } from '@interpreter/util';
import { ToolMap, ToolSetSet } from '@interpreter/llm-model/tool';
import { toolCall, toolResult } from '@interpreter/llm-model/toolModel';
import { cacheDelimiter, injectDelimiter } from './cache.ts';
import type { LlmModel } from '@interpreter/llm-model/vendor';
import { Tracer } from '@interpreter/tracing';
import dedent from 'dedent';
import { JsonEnforcerKind } from '@interpreter/free-jsonschema';
import { fail } from '@std/assert';
@CertainLach
CertainLach / btrfs-luks2.nix
Created February 27, 2026 15:46
NixOS configuration for btrfs + luks2 sdImage builder
# Copy of https://github.com/NixOS/nixpkgs/blob/8647f7d06de5f1e5f5e34a740bdd94d5af09917c/nixos/lib/make-btrfs-fs.nix
# with LUKS2 encryption added on top.
# Includes this patch: https://github.com/NixOS/nixpkgs/pull/434122
{
stdenv,
buildPackages,
storePaths,
populateImageCommands ? "",
volumeLabel,