feat(BinaryCache): Add host configuration

This commit is contained in:
Tibo De Peuter 2026-03-17 18:40:11 +01:00
parent e3c228ed60
commit a933b7d735
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 50 additions and 0 deletions

View file

@ -59,6 +59,7 @@
Template.modules = [ ./hosts/Template ];
Development.modules = [ ./hosts/Development ];
Testing.modules = [ ./hosts/Testing ];
BinaryCache.modules = [ ./hosts/BinaryCache ];
};
};
}

View file

@ -0,0 +1,49 @@
{ config, pkgs, lib, system, ... }:
let
hostIp = "192.168.0.25";
in {
config = {
homelab = {
services.attic = {
enable = true;
enableRemoteBuilder = true;
openFirewall = true;
};
virtualisation.guest.enable = true;
};
networking = {
hostName = "BinaryCache";
hostId = "100002500";
domain = "depeuter.dev";
useDHCP = false;
enableIPv6 = true;
defaultGateway = {
address = "192.168.0.1";
interface = "ens18";
};
interfaces.ens18 = {
ipv4.addresses = [
{
address = hostIp;
prefixLength = 24;
}
];
};
nameservers = [
"1.1.1.1" # Cloudflare
"1.0.0.1" # Cloudflare
];
};
# Sops configuration for this host is now handled by the common module
system.stateVersion = "24.05";
};
}