nixos/hosts/vm/log-2/default.nix
2025-10-11 12:49:14 +02:00

51 lines
998 B
Nix

{ ... }:
{
imports = [
./log.nix
];
disko.devices.disk.logs.device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1";
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";
}