2024-12-09 21:30:54 +01:00
|
|
|
{ config, fp, pkgs, lib, values, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(fp /base)
|
|
|
|
(fp /misc/metrics-exporters.nix)
|
2024-12-09 22:15:57 +01:00
|
|
|
|
|
|
|
./services/gitea-runners.nix
|
2024-12-09 21:30:54 +01:00
|
|
|
];
|
|
|
|
|
2024-12-09 22:15:57 +01:00
|
|
|
sops.defaultSopsFile = fp /secrets/ustetind/ustetind.yaml;
|
|
|
|
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
|
|
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
|
|
|
|
sops.age.generateKey = true;
|
|
|
|
|
2024-12-09 21:30:54 +01:00
|
|
|
networking.hostName = "ustetind";
|
|
|
|
|
|
|
|
networking.useHostResolvConf = lib.mkForce false;
|
|
|
|
|
2024-12-09 23:25:44 +01:00
|
|
|
systemd.network.networks = {
|
|
|
|
"30-lxc-eth" = values.defaultNetworkConfig // {
|
|
|
|
matchConfig = {
|
|
|
|
Type = "ether";
|
|
|
|
Kind = "veth";
|
|
|
|
Name = [
|
|
|
|
"eth*"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
address = with values.hosts.ustetind; [ (ipv4 + "/25") (ipv6 + "/64") ];
|
|
|
|
};
|
|
|
|
"40-podman-veth" = values.defaultNetworkConfig // {
|
|
|
|
matchConfig = {
|
|
|
|
Type = "ether";
|
|
|
|
Kind = "veth";
|
|
|
|
Name = [
|
|
|
|
"veth*"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
DHCP = "yes";
|
2024-12-09 21:30:54 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "24.11";
|
|
|
|
}
|