This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function tostring_pretty(value, cache, ident) | |
if type(value) ~= "table" then | |
if type(value) == "string" then | |
return '"' .. tostring(value) .. '"' | |
end | |
return tostring(value) | |
end | |
cache = cache or {} | |
ident = ident or " " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template `?`* [T](o: Option[T]) = | |
block: | |
if o.isNone: | |
return none(T) | |
o.get() | |
macro R(T, F, p: untyped) = | |
expectKind(p, nnkProcDef) | |
p[3][0] = nnkBracketExpr.newTree(newIdentNode("Result"), T, F) | |
let templateDefs = quote do: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git | |
neovim | |
firefox | |
w3m | |
curl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
DOTS_REPO="https://github.com/dneumann42/dots" | |
NVIM_REPO="https://github.com/dneumann42/neovim-config" | |
PACKAGES=( | |
## Core | |
"git" | |
"zsh" | |
"kitty" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env nix-shell | |
#! nix-shell -i bash -p bash | |
curl "https://gist.githubusercontent.com/dneumann42/be0789f4ccc0478ced0b80aa5daf9251/raw" | |
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager | |
sudo nix-channel --update |