totoro: switch to networkd
This commit is contained in:
parent
2884ced8a3
commit
dd10a6ba6b
1 changed files with 11 additions and 3 deletions
|
@ -90,11 +90,15 @@ in {
|
||||||
hostName = "totoro"; # Define your hostname.
|
hostName = "totoro"; # Define your hostname.
|
||||||
domain = "int.as205479.net";
|
domain = "int.as205479.net";
|
||||||
hostId = "676c08c4";
|
hostId = "676c08c4";
|
||||||
interfaces.br-ext.useDHCP = true;
|
useNetworkd = true;
|
||||||
bridges.br-ext.interfaces = [ "enp0s31f6" ];
|
bridges.br-ext.interfaces = [ "enp0s31f6" ];
|
||||||
|
interfaces.br-ext = {
|
||||||
|
ipv4.addresses = [
|
||||||
|
{ address = "192.168.1.40"; prefixLength = 24; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
interfaces.br-int = {
|
interfaces.br-int = {
|
||||||
virtual = true;
|
|
||||||
ipv4.addresses = [{ address = "10.0.0.2"; prefixLength = 24; }];
|
ipv4.addresses = [{ address = "10.0.0.2"; prefixLength = 24; }];
|
||||||
};
|
};
|
||||||
bridges.br-int.interfaces = [];
|
bridges.br-int.interfaces = [];
|
||||||
|
@ -118,7 +122,6 @@ in {
|
||||||
|
|
||||||
macvlans.mv-plex = { interface = "br-ext"; };
|
macvlans.mv-plex = { interface = "br-ext"; };
|
||||||
interfaces.mv-plex = {
|
interfaces.mv-plex = {
|
||||||
virtual = true;
|
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
# plex-totoro
|
# plex-totoro
|
||||||
{ address = "92.118.30.20"; prefixLength = 32; }
|
{ address = "92.118.30.20"; prefixLength = 32; }
|
||||||
|
@ -133,6 +136,11 @@ in {
|
||||||
{ address = "92.118.30.19"; prefixLength = 32; }
|
{ address = "92.118.30.19"; prefixLength = 32; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
systemd.network = {
|
||||||
|
networks."40-br-int" = {
|
||||||
|
linkConfig.RequiredForOnline = "no";
|
||||||
|
};
|
||||||
|
};
|
||||||
my.ip.tailscale = "100.122.86.11";
|
my.ip.tailscale = "100.122.86.11";
|
||||||
|
|
||||||
# Virtualisation
|
# Virtualisation
|
||||||
|
|
Loading…
Reference in a new issue