56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
imports = [
|
|
./log.nix
|
|
];
|
|
|
|
disko.devices.disk.logs.device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1";
|
|
|
|
networking = {
|
|
hostName = "log-2";
|
|
domain = "int.infra.auro.re";
|
|
};
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
systemd.network = {
|
|
enable = true;
|
|
|
|
links = {
|
|
"10-int" = {
|
|
matchConfig.MACAddress = "04:00:00:37:f2:a1";
|
|
linkConfig.Name = "int";
|
|
};
|
|
};
|
|
|
|
networks = {
|
|
"10-int" = {
|
|
domains = [
|
|
"int.infra.auro.re"
|
|
"auro.re"
|
|
];
|
|
matchConfig.Name = "int";
|
|
linkConfig.RequiredForOnline = "routable";
|
|
address = [
|
|
"10.206.1.10/16"
|
|
"2a09:6840:206::1:10/64"
|
|
];
|
|
routes = [
|
|
{ Gateway = "10.206.0.1"; }
|
|
{ Gateway = "2a09:6840:206::1"; }
|
|
];
|
|
dns = [
|
|
"10.206.1.1"
|
|
"10.206.1.2"
|
|
"2a09:6840:206::1:1"
|
|
"2a09:6840:206::1:2"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
# TODO: script de rotation des logs
|
|
|
|
system.stateVersion = "25.05";
|
|
}
|