Corrected MAC for lambda, and changed extif0 -> intif0
This commit is contained in:
parent
348338bc40
commit
d9b0132e45
@ -48,16 +48,16 @@
|
|||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
macvlans = {
|
macvlans = {
|
||||||
extif0 = {
|
intif0 = {
|
||||||
interface = "enp3s0f1";
|
interface = "enp3s0f1";
|
||||||
mode = "bridge";
|
mode = "bridge";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
interfaces = {
|
interfaces = {
|
||||||
extif0 = {
|
intif0 = {
|
||||||
# output of: echo lambda-extif0|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
|
# output of: echo lambda-intif0|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
|
||||||
macAddress = "02:27:fe:1c:3c:6e";
|
macAddress = "02:f5:fe:8c:22:fe";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let primary-ip = "10.0.0.3";
|
{
|
||||||
|
# TODO: remove?
|
||||||
in {
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"openssh-with-gssapi-8.4p1" # CVE-2021-28041
|
||||||
|
];
|
||||||
|
|
||||||
fudo.slynk.enable = true;
|
fudo.slynk.enable = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
@ -12,12 +15,8 @@ in {
|
|||||||
enp4s0f0.useDHCP = false;
|
enp4s0f0.useDHCP = false;
|
||||||
enp4s0f1.useDHCP = false;
|
enp4s0f1.useDHCP = false;
|
||||||
|
|
||||||
extif0 = {
|
intif0 = {
|
||||||
useDHCP = false;
|
useDHCP = true;
|
||||||
ipv4.addresses = [{
|
|
||||||
address = primary-ip;
|
|
||||||
prefixLength = 22;
|
|
||||||
}];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -25,7 +24,7 @@ in {
|
|||||||
fudo.ipfs = {
|
fudo.ipfs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
users = [ "niten" ];
|
users = [ "niten" ];
|
||||||
api-address = "/ip4/${primary-ip}/tcp/5001";
|
api-address = "/ip4/0.0.0.0/tcp/5001";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: add camera
|
# TODO: add camera
|
||||||
|
@ -68,20 +68,8 @@ in {
|
|||||||
|
|
||||||
hosts = {
|
hosts = {
|
||||||
limina = {
|
limina = {
|
||||||
ip-address = "10.0.0.6";
|
|
||||||
mac-address = "02:fd:79:94:a2:a8";
|
|
||||||
};
|
|
||||||
nostromo = {
|
|
||||||
ip-address = "10.0.0.1";
|
ip-address = "10.0.0.1";
|
||||||
mac-address = "46:54:76:06:f1:10";
|
mac-address = "02:fd:79:94:a2:a8";
|
||||||
};
|
|
||||||
lm = {
|
|
||||||
ip-address = "10.0.0.2";
|
|
||||||
mac-address = "00:23:7d:e6:d9:ea";
|
|
||||||
};
|
|
||||||
lambda = {
|
|
||||||
ip-address = "10.0.0.3";
|
|
||||||
mac-address = "02:27:fe:1c:3c:6e";
|
|
||||||
};
|
};
|
||||||
switch-master = {
|
switch-master = {
|
||||||
ip-address = "10.0.0.5";
|
ip-address = "10.0.0.5";
|
||||||
@ -90,6 +78,14 @@ in {
|
|||||||
google-wifi = {
|
google-wifi = {
|
||||||
ip-address = "10.0.0.7";
|
ip-address = "10.0.0.7";
|
||||||
mac-address = "7C:D9:5C:9F:6F:E9";
|
mac-address = "7C:D9:5C:9F:6F:E9";
|
||||||
|
};
|
||||||
|
nostromo = {
|
||||||
|
ip-address = "10.0.0.10";
|
||||||
|
mac-address = "46:54:76:06:f1:10";
|
||||||
|
};
|
||||||
|
lambda = {
|
||||||
|
ip-address = "10.0.0.11";
|
||||||
|
mac-address = "02:f5:fe:8c:22:fe";
|
||||||
};
|
};
|
||||||
cam-entrance = {
|
cam-entrance = {
|
||||||
ip-address = "10.0.0.31";
|
ip-address = "10.0.0.31";
|
||||||
|
Loading…
Reference in New Issue
Block a user