feat(gitops): implement native custom gitops solution with webhooks
This commit is contained in:
parent
501cda6402
commit
78a20fbe00
25 changed files with 1804 additions and 18 deletions
21
flake.nix
21
flake.nix
|
|
@ -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";
|
||||
})
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue