mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-25 21:30:52 +01:00
feat: generalize simple network profile
This commit is contained in:
parent
5bdec2270f
commit
757386bd11
2 changed files with 6 additions and 1 deletions
|
@ -38,6 +38,11 @@
|
|||
default = with profiles; [ base ];
|
||||
};
|
||||
|
||||
defaultInterface = mkOption {
|
||||
description = "default interface of the machine";
|
||||
default = "ens18";
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue