feat(gitops): implement native custom gitops solution with webhooks

This commit is contained in:
Tibo De Peuter 2026-07-22 21:20:16 +02:00
parent 501cda6402
commit 78a20fbe00
Signed by: tdpeuter
SSH key fingerprint: SHA256:u/h/LVoqKF1Iz02uOyxe6hcjmoZASCGV2HM0TG9ZMoU
25 changed files with 1804 additions and 18 deletions

View file

@ -16,11 +16,6 @@
inputs.flake-utils.follows = "flake-utils";
};
comin = {
url = "github:nlewo/comin";
inputs.nixpkgs.follows = "nixpkgs";
};
pre-commit-hooks = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
@ -29,7 +24,7 @@
outputs = inputs@{
self, nixpkgs,
flake-utils, sops-nix, utils, comin, pre-commit-hooks,
flake-utils, sops-nix, utils, pre-commit-hooks,
...
}:
let
@ -67,19 +62,9 @@
./users
sops-nix.nixosModules.sops
comin.nixosModules.comin
# Base comin configuration for all nodes
({ config, pkgs, ... }: {
services.comin = {
enable = true;
remotes = [{
name = "origin";
# Replace with actual internal forgejo URL once available
url = "https://github.com/example/nix-config.git";
branches.main.name = "v2";
}];
};
# Inject git revision for our custom GitOps module to query
system.configurationRevision = self.rev or self.dirtyRev or "unknown";
})
];
};