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

50
hosts/Builder/default.nix Normal file
View file

@ -0,0 +1,50 @@
{ pkgs, ... }:
{
config = {
networking = {
hostName = "Builder";
hostId = "aaaa4200";
domain = "depeuter.dev";
useDHCP = false;
enableIPv6 = true;
defaultGateway = {
address = "192.168.0.1";
interface = "ens18";
};
interfaces.ens18 = {
ipv4.addresses = [
{
address = "192.168.0.42";
prefixLength = 24;
}
];
};
nameservers = [
"1.1.1.1"
"1.0.0.1"
];
};
# Dedicated builder user
users.users.builder = {
isNormalUser = true;
description = "Nix Remote Builder";
# You must add the public key corresponding to `builder-ssh-key` here
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1... TODO: replace with build-farm-key.pub"
];
};
# Optimize nix settings for a build farm
nix.settings.trusted-users = [ "builder" ];
nix.settings.cores = 0; # Use all cores
nix.settings.max-jobs = "auto";
system.stateVersion = "24.05";
};
}