Øystein Tveit
40dd069a52
All checks were successful
Eval nix flake / evals (push) Successful in 4m25s
45 lines
984 B
Nix
45 lines
984 B
Nix
{ config, fp, pkgs, lib, values, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(fp /base)
|
|
(fp /misc/metrics-exporters.nix)
|
|
|
|
./services/gitea-runners.nix
|
|
];
|
|
|
|
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;
|
|
|
|
networking.hostName = "ustetind";
|
|
|
|
networking.useHostResolvConf = lib.mkForce false;
|
|
|
|
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";
|
|
};
|
|
};
|
|
|
|
system.stateVersion = "24.11";
|
|
}
|