nixos/hosts/vm/grafana/default.nix
2025-10-07 21:20:49 +02:00

52 lines
952 B
Nix

{ ... }:
{
imports = [
./grafana.nix
];
networking = {
hostName = "grafana";
domain = "ext.infra.auro.re";
};
boot.loader.systemd-boot.enable = true;
systemd.network = {
enable = true;
links = {
"10-ext" = {
matchConfig.MACAddress = "ae:ae:ae:a4:7d:ab";
linkConfig.Name = "ext";
};
};
networks = {
"10-ext" = {
domains = [
"ext.infra.auro.re"
"auro.re"
];
matchConfig.Name = "ext";
linkConfig.RequiredForOnline = "routable";
address = [
"10.211.1.7/16"
"2a09:6840:211::1:7/64"
];
routes = [
{ Gateway = "10.211.0.1"; }
{ Gateway = "2a09:6840:211::1"; }
];
dns = [
"10.206.1.1"
"10.206.1.2"
"2a09:6840:206::1:1"
"2a09:6840:206::1:2"
];
};
};
};
system.stateVersion = "25.05";
}