hosts: use dynamic primary interface name

This commit is contained in:
Max Headroom 2024-07-16 20:14:30 +02:00
parent 601fc03e32
commit fa36c5879c
5 changed files with 9 additions and 9 deletions

View file

@ -46,7 +46,7 @@
time.timeZone = "Europe/Helsinki";
networking.useDHCP = false;
networking.interfaces.enp0s31f6.useDHCP = true;
networking.interfaces.${config.reflection.interfaces.primary.link}.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";

View file

@ -1,4 +1,4 @@
{ depot, ... }:
{ config, depot, ... }:
{
imports =
@ -22,7 +22,7 @@
time.timeZone = "Europe/Zurich";
networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true;
networking.interfaces.${config.reflection.interfaces.primary.link}.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";

View file

@ -1,4 +1,4 @@
{ depot, ... }:
{ config, depot, ... }:
{
imports =
@ -24,7 +24,7 @@
time.timeZone = "Europe/Zurich";
networking.useDHCP = false;
networking.interfaces.enp0s6.useDHCP = true;
networking.interfaces.${config.reflection.interfaces.primary.link}.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";

View file

@ -1,4 +1,4 @@
{ depot, ... }:
{ config, depot, ... }:
{
imports = with depot.nixosModules; [
@ -12,7 +12,7 @@
networking.useDHCP = false;
networking.interfaces.eth0.useDHCP = true;
networking.interfaces.${config.reflection.interfaces.primary.link}.useDHCP = true;
networking.nameservers = [ depot.hours.VEGAS.interfaces.vstub.addr ];

View file

@ -1,4 +1,4 @@
{ depot, ... }:
{ config, depot, ... }:
{
imports =
@ -22,7 +22,7 @@
time.timeZone = "Europe/Zurich";
networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true;
networking.interfaces.${config.reflection.interfaces.primary.link}.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";