Skip to content

Instantly share code, notes, and snippets.

@noteed
noteed / README.md
Last active March 12, 2026 15:48
Consume a devenv.lock file from default.nix

Consuming devenv.lock from default.nix (without flakes)

Clone this Gist:

git clone git@gist.github.com:/bbe689928cfa6ca1e55b7f2506e09626.git try-devenv-lock

This Gist demonstrates how devenv.lock can be parsed from plain Nix to resolve inputs without enabling flakes.

@noteed
noteed / docker-tinc.md
Last active August 1, 2025 14:09
Docker - Tinc setup
@noteed
noteed / indented-expr.hs
Created July 3, 2024 09:01
Megaparsec parser for indented multi-line expressions
-- Parse expressions layed out on multiple lines (as long as they're indented).
-- It works by using the standard @makeExprParser@ and passing it versions of,
-- say, the @lexeme'@ combinator that check the current indentation against an
-- initial one.
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad (guard)
import Control.Monad.Combinators.Expr
import Data.Void
import Text.Megaparsec
@noteed
noteed / content.slab
Last active March 4, 2025 16:50
Setting up a Nix binary cache
include layout-page.slab
let titl = "Setting up a Nix binary cache"
let date = "2024-06-05"
page{titl, date}
style.
pre, code {
max-width: 100%;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>/home/thu/projects/slab/src/Slab/Command.hs</title>
<meta name="colorscheme" content="wildcharm"></meta>
<style>
* {font-family: monospace}
body {background-color: #ffffff; color: #000000; margin:0px; padding:0px; margin-top: 13.5px; margin-left: -0.5px;}
.String {color: #0000c0}
@noteed
noteed / docker-ovs.md
Last active December 29, 2023 07:07
Docker - Open vSwitch setup
@noteed
noteed / .gitignore
Last active January 9, 2023 21:53
Pandoc, YAML, JSON, CSV, Sqlite
hosts.csv
hosts.db
@noteed
noteed / Tufte.md
Last active January 6, 2023 23:25
Pandoc, Tufte CSS

Pandoc, Tufte CSS, and more

@noteed
noteed / nix-cache.md
Last active December 7, 2022 07:20
Nix cache

Notes about caching Nix builds

You can use Cachix (I haven't tried it yet but people are happy with it), or spend time like I do crawling through similar notes.

I have to put back my notes in order, because of this tweets: https://twitter.com/noteed/status/1285875859468029958

It turns out I did use a cache on Digital Ocean Spaces in the past, but I didn't have much notes.

Links

@noteed
noteed / minimal-docker-haskell.md
Last active August 20, 2022 01:20
Notes about creating small Docker images with Haskell binaries.