new git-hooks based deployment

This commit is contained in:
Squibid 2026-01-09 22:07:29 -05:00
parent e65718178e
commit a8e9884c3c
Signed by: squibid
GPG key ID: BECE5684D3C4005D
5 changed files with 85 additions and 80 deletions

View file

@ -6,4 +6,20 @@ Declaratively keep your stuff up to date in your nixos config.
## Usage
```nix
services.fooud = {
enable = true;
repos = [
{
path = "/full/path/to/your/repo.git";
hooks = [
pkgs.writeScriptBin "post-recieve" ''
git clone . /var/www/your/deployed/location
'';
];
}
];
};
```
# TODO
- [ ] add support for non-git files