add lib for helper functions

This commit is contained in:
Squibid 2026-01-11 17:12:47 -05:00
parent 2bd18ab7ca
commit cc887fdc72
Signed by: squibid
GPG key ID: BECE5684D3C4005D
2 changed files with 14 additions and 1 deletions

12
lib.nix
View file

@ -0,0 +1,12 @@
{ pkgs, ... }:
let
post-recv = dest: pkgs.writeScriptBin "post-recv" ''
git clone . ${dest}
'';
in
let
lib.git = {
inherit post-recv;
};
in
lib