1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

chore: put real MAC addresses in repo secrets

This commit is contained in:
oddlama 2023-03-15 17:43:04 +01:00
parent 6f8f74cc69
commit f2f8ca71bb
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
13 changed files with 47 additions and 27 deletions

View file

@ -1,4 +1,4 @@
{
{ nodeSecrets, ... }: {
networking = {
hostId = "4313abca";
wireless.iwd.enable = true;
@ -7,14 +7,14 @@
systemd.network.networks = {
"10-lan1" = {
DHCP = "yes";
matchConfig.MACAddress = "00:00:00:00:00:00";
matchConfig.MACAddress = nodeSecrets.networking.interfaces.lan1.mac;
networkConfig.IPv6PrivacyExtensions = "kernel";
dhcpV4Config.RouteMetric = 10;
dhcpV6Config.RouteMetric = 10;
};
"10-wlan1" = {
DHCP = "yes";
matchConfig.MACAddress = "00:00:00:00:00:00";
matchConfig.MACAddress = nodeSecrets.networking.interfaces.wlan1.mac;
networkConfig.IPv6PrivacyExtensions = "kernel";
dhcpV4Config.RouteMetric = 40;
dhcpV6Config.RouteMetric = 40;

Binary file not shown.

View file

@ -1,19 +1,17 @@
{
networking = {
hostId = "49ce3b71";
};
{ nodeSecrets, ... }: {
networking.hostId = "49ce3b71";
systemd.network.networks = {
"10-lan1" = {
DHCP = "yes";
matchConfig.MACAddress = "00:00:00:00:00:00";
matchConfig.MACAddress = nodeSecrets.networking.interfaces.lan1.mac;
networkConfig.IPv6PrivacyExtensions = "kernel";
dhcpV4Config.RouteMetric = 10;
dhcpV6Config.RouteMetric = 10;
};
"10-lan2" = {
DHCP = "yes";
matchConfig.MACAddress = "00:00:00:00:00:00";
matchConfig.MACAddress = nodeSecrets.networking.interfaces.lan2.mac;
networkConfig.IPv6PrivacyExtensions = "kernel";
dhcpV4Config.RouteMetric = 20;
dhcpV6Config.RouteMetric = 20;

View file

@ -0,0 +1,10 @@
age-encryption.org/v1
-> X25519 fJutn5YCebczN3xQLTDNPKQlNj4p47h1sUgkyVfRARw
V61YLy8oXTJZUFhpxYCM7glt1u3LKtVgkp0XDdYwlaE
-> piv-p256 xqSe8Q AzOVI4DKP7g7Rzr7NbH6olY/T57R9BbO5gNpeXrCn+xZ
cmD4KdE3CIbKp36azm7fuL5V1EVvgcuaLE8/cEzE7x0
-> @Zm-grease )8>fIDi YH{ Qp_) VJs.7
jkMFKrAANRssnB6n0Cr6cxVc5g
--- eNSoD5B33WIgF5M26POfs5rUjqVNb6BqiMedIMS7/H8
&ûë^ÑÓ”3 ˜œÞÌsˆ $mÃ"‚e­ºk­·Ù¦~BŠõ”ad°šeì^é9’š/Š�aI/½�šyJí‚F'œIÐ^Ã�WåPÁÎ/0uŽ;ãææ—ä‘bn
TXró·/,è¹Û‘æ%ÀSɃ­}娵`ɃϞº {–¤æµ$˜š�Ûý”O

View file

@ -21,6 +21,7 @@
./zigbee2mqtt.nix
./esphome.nix
./nginx.nix
./hostapd.nix
];
boot.loader.grub.enable = false;

View file

@ -0,0 +1,6 @@
{
lib,
config,
...
}: {
}

View file

@ -1,15 +1,20 @@
{
networking = {
hostId = "f7e6acdc";
};
{ nodeSecrets, ... }: {
networking.hostId = "f7e6acdc";
systemd.network.networks = {
"10-lan1" = {
DHCP = "yes";
matchConfig.MACAddress = "00:00:00:00:00:00";
matchConfig.MACAddress = nodeSecrets.networking.interfaces.lan1.mac;
networkConfig.IPv6PrivacyExtensions = "kernel";
dhcpV4Config.RouteMetric = 10;
dhcpV6Config.RouteMetric = 10;
};
#"10-wlan1" = {
# DHCP = "yes";
# matchConfig.MACAddress = nodeSecrets.networking.interfaces.wlan1.mac;
# networkConfig.IPv6PrivacyExtensions = "kernel";
# dhcpV4Config.RouteMetric = 40;
# dhcpV6Config.RouteMetric = 40;
#};
};
}