feat: generalize simple network profile

This commit is contained in:
Julien Malka 2024-08-24 01:03:39 +02:00
parent 5bdec2270f
commit 757386bd11
Signed by: Luj
GPG key ID: 6FC74C847011FD83
2 changed files with 6 additions and 1 deletions

View file

@ -38,6 +38,11 @@
default = with profiles; [ base ];
};
defaultInterface = mkOption {
description = "default interface of the machine";
default = "ens18";
};
};
}
);

View file

@ -2,7 +2,7 @@
{
systemd.network.enable = true;
systemd.network.networks."10-wan" = {
matchConfig.Name = "ens18";
matchConfig.Name = config.machine.meta.defaultInterface;
networkConfig = {
DHCP = "ipv4";
Address = config.machine.meta.ips.public.ipv6;