Skip to content

Instantly share code, notes, and snippets.

View benley's full-sized avatar
🐈

Benjamin Staffin benley

🐈
View GitHub Profile
@benley
benley / freeipa-server.nix
Created February 7, 2024 18:38 — forked from s1341/freeipa-server.nix
working freeipa config
{
config,
lib,
...
}: let
cfg = config.services.freeipa-server;
in {
options.services.freeipa-server = {
enable = lib.mkEnableOption "freeipa service";
router = lib.mkOption {
@benley
benley / nvim-client
Created August 14, 2017 05:04 — forked from rf-/nvim-client
#!/usr/bin/env python
import neovim, os, re, sys, time
# Get a list of buffers that haven't been deleted. `nvim.buffers` includes
# buffers that have had `:bdelete` called on them and aren't in the buffer
# list, so we have to filter those out.
def get_listed_buffers(nvim):
return set(buf.number for buf in nvim.buffers \
if nvim.eval('buflisted(%d)' % buf.number))
with import <nixpkgs> {};
let
callPackage = pkgs.lib.callPackageWith (pkgs // self);
self = rec {
frame = callPackage ./frame.nix { };
grail = callPackage ./grail.nix { };