From 8ab4bc0f4871d8e0835811472f143bd987c94040 Mon Sep 17 00:00:00 2001 From: dennis Date: Thu, 24 Oct 2019 15:44:06 +0200 Subject: putting plex on its own ip --- mkosi.nspawn | 2 +- mkosi.postinst | 2 ++ .../etc/systemd/network/80-container-host0.network | 0 mkosi.skeleton/etc/systemd/network/wired.network | 14 ++++++++++++++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 mkosi.skeleton/etc/systemd/network/80-container-host0.network create mode 100644 mkosi.skeleton/etc/systemd/network/wired.network diff --git a/mkosi.nspawn b/mkosi.nspawn index 349cc44..30049e5 100644 --- a/mkosi.nspawn +++ b/mkosi.nspawn @@ -9,7 +9,7 @@ NoNewPrivilegs=yes #PrivateUsersChown=yes Bind=/var/local/plex:/var/lib/plexmediaserver Bind=/var/cache/plextranscode:/transcode -Bind=/srv/cold:/srv/cold +BindReadOnly=/srv/cold:/srv/cold [Network] VirtualEthernet=no diff --git a/mkosi.postinst b/mkosi.postinst index 303a4eb..a8d222d 100755 --- a/mkosi.postinst +++ b/mkosi.postinst @@ -1,6 +1,8 @@ #!/bin/sh set -ex +systemctl enable systemd-networkd + export DEBIAN_FRONTEND=noninteractive export XDG_CONFIG_HOME="/config/xdg" diff --git a/mkosi.skeleton/etc/systemd/network/80-container-host0.network b/mkosi.skeleton/etc/systemd/network/80-container-host0.network new file mode 100644 index 0000000..e69de29 diff --git a/mkosi.skeleton/etc/systemd/network/wired.network b/mkosi.skeleton/etc/systemd/network/wired.network new file mode 100644 index 0000000..0eb29c7 --- /dev/null +++ b/mkosi.skeleton/etc/systemd/network/wired.network @@ -0,0 +1,14 @@ +[Match] +Name=host0 + +[Network] +DNS=192.168.1.250 +Domains=dnns.no +Address=192.168.1.251 +Gateway=192.168.1.1 +Address=10.71.2.3/24 + +[Route] +Gateway=10.71.2.1 +Destination=10.71.2.0/24 +GatewayOnlink=true -- cgit v1.2.3