Skip to content

Instantly share code, notes, and snippets.

View antifuchs's full-sized avatar

Andreas Fuchs antifuchs

View GitHub Profile
antifuchs /
Last active November 24, 2023 16:45 - a hydra plugin that pushes evaluation status of each commit to your nix flake's github repo
# - a hydra plugin that pushes evaluation status of each commit
# to your nix flake's github repo
# Note that this file must live under the path "ci/hydra-plugins/Hydra/Plugin/"
# The "ci/hydra-plugins" can be changed, but you have to adjust it in the hydra.nix config below.
# The "Hydra/Plugin/" directory must be kept intact though, otherwise perl won't load this module.
package Hydra::Plugin::GithubEvalNotify;
use strict;
antifuchs / nixpkgs.docsetconfig
Last active August 28, 2023 16:45
A Dash7 docset generator that allows indexing the current stable nixpkgs manual
View nixpkgs.docsetconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>footer {
antifuchs / config.h
Created April 2, 2023 22:08
My ploopy configuration with some back/forward helpers & ad-hoc and permanent drag-scrolling support
View config.h
/* Copyright 2023 Andreas Fuchs <>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
View boot-unlock.nix
# To set this up, first get tailscale working in an isolated linux shell:
# 1. sudo systemctl stop tailscaled.service
# 2. tailscaled -port 9993 -state tailscale-luks-setup.state -tun userspace-networking -socket ./tailscaled.sock
# 3. tailscale -socket ./tailscaled.sock up -hostname HOSTNAME-luks
# 4. tailscale -socket ./tailscaled.sock down
# 5. ctrl-c out of tailscaled
# 6 sudo systemctl start tailscaled.service
# Then add the .state file to your machine secrets and pass its path as tailscaleStatePath.
View homebrew.nix
{ lib, config, pkgs, ... }:
with lib;
cfg = config.homebrew;
caskAppdirStatement =
if (isNull cfg.cask_args.appdir)
then ""
else "cask_args appdir: '${cfg.cask_args.appdir}'";
from talon import Context, Module
mod = Module()
modes = {
"record": "enable recording mode, writes files to ~/.talon/recordings/",
for key, value in modes.items():
mod.mode(key, value)
antifuchs / dock.nix
Last active August 18, 2023 09:23
A nix module that arranges the macOS dock the way you want it. Note: It won't allow you to manually re-arrange the items on it; the dock gets reset everytime you log in.
View dock.nix
{ config, pkgs, lib, ... }:
with lib;
cfg = config.local.dock;
stdenv = pkgs.stdenv;
options = {
local.dock.enable = mkOption {
description = "Enable dock";
View emacs-native-comp-linker-driver-options.patch
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index c5027168be..81a5575d96 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -140,6 +140,16 @@ comp-async-env-modifier-form
:type 'list
:group 'comp)
+(defcustom comp-native-driver-options nil
+ "Options passed verbatim to the native compiler's backend driver.
antifuchs / Cargo.toml
Created April 10, 2019 10:54
An example of a failing parse error kind implementation
View Cargo.toml
edition = '2018'
name = "wtf_nom"
version = "0.0.1-dev"
authors = ["Andreas Fuchs <>"]
license = "MIT"
nom = "4.2.3"
  • Feature Name: nonzero_uint_literals
  • Start Date: TODO
  • RFC PR:
  • Rust Issue:


Add an extension to the INTEGER_LITERAL syntax that allows users to specify literals as non-zero unsigned integers. We introduce a new