summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordennis <dennis@mrslave>2019-10-24 15:44:06 +0200
committerdennis <dennis@mrslave>2019-10-24 15:44:06 +0200
commit8ab4bc0f4871d8e0835811472f143bd987c94040 (patch)
tree5bdbe9cd707aa3b56407b4ae852191ac3f8dd396
parentchanging dirname (diff)
downloadmkosi-plex-8ab4bc0f4871d8e0835811472f143bd987c94040.tar.gz
putting plex on its own ip
-rw-r--r--mkosi.nspawn2
-rwxr-xr-xmkosi.postinst2
-rw-r--r--mkosi.skeleton/etc/systemd/network/80-container-host0.network0
-rw-r--r--mkosi.skeleton/etc/systemd/network/wired.network14
4 files changed, 17 insertions, 1 deletions
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
--- /dev/null
+++ b/mkosi.skeleton/etc/systemd/network/80-container-host0.network
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