aboutsummaryrefslogtreecommitdiffstats
path: root/mkosi.extra
diff options
context:
space:
mode:
authordennis <dennis@mrslave>2019-11-12 11:13:17 +0100
committerdennis <dennis@mrslave>2019-11-12 11:13:17 +0100
commit5a6271f63fbb5d1d269c7ba62a55289ac9b5ef11 (patch)
tree9e1b00337ca130ef4de38b580535f70f25e64d7c /mkosi.extra
parentfuck ubuntus motd (diff)
downloadmkosi-pihole-5a6271f63fbb5d1d269c7ba62a55289ac9b5ef11.tar.gz
moving from skeleton to extra, and disabling dhcp
Diffstat (limited to 'mkosi.extra')
-rw-r--r--mkosi.extra/etc/apt/apt.conf.d/20auto-upgrades6
-rw-r--r--mkosi.extra/etc/apt/apt.conf.d/50unattended-upgrades33
-rw-r--r--mkosi.extra/etc/docker-pi-hole-version1
l---------mkosi.extra/etc/systemd/network/80-container-host0.network1
-rw-r--r--mkosi.extra/etc/systemd/network/wired.network15
5 files changed, 56 insertions, 0 deletions
diff --git a/mkosi.extra/etc/apt/apt.conf.d/20auto-upgrades b/mkosi.extra/etc/apt/apt.conf.d/20auto-upgrades
new file mode 100644
index 0000000..8504436
--- /dev/null
+++ b/mkosi.extra/etc/apt/apt.conf.d/20auto-upgrades
@@ -0,0 +1,6 @@
+APT::Periodic::Unattended-Upgrade "1";
+
+APT::Periodic::Update-Package-Lists "1";
+
+
+APT::Periodic::AutocleanInterval "7";
diff --git a/mkosi.extra/etc/apt/apt.conf.d/50unattended-upgrades b/mkosi.extra/etc/apt/apt.conf.d/50unattended-upgrades
new file mode 100644
index 0000000..f996348
--- /dev/null
+++ b/mkosi.extra/etc/apt/apt.conf.d/50unattended-upgrades
@@ -0,0 +1,33 @@
+// Unattended-Upgrade::Origins-Pattern controls which packages are
+// upgraded.
+Unattended-Upgrade::Origins-Pattern {
+ "origin=Ubuntu,archive=${distro_codename}-security";
+ "o=Ubuntu,a=${distro_codename}";
+ "o=Ubuntu,a=${distro_codename}-updates";
+ "o=Ubuntu,a=${distro_codename}-proposed-updates";
+ "o=Ubuntu,n=${distro_codename}-backports";
+ };
+
+// List of packages to not update (regexp are supported)
+Unattended-Upgrade::Package-Blacklist {
+};
+
+
+// Split the upgrade into the smallest possible chunks so that
+// they can be interrupted with SIGUSR1. This makes the upgrade
+// a bit slower but it has the benefit that shutdown while a upgrade
+// is running is possible (with a small delay)
+Unattended-Upgrade::MinimalSteps "true";
+
+
+// Do automatic removal of new unused dependencies after the upgrade
+// (equivalent to apt-get autoremove)
+Unattended-Upgrade::Remove-Unused-Dependencies "true";
+
+
+// Do upgrade application even if it requires restart after upgrade
+// I.e. "XB-Upgrade-Requires: app-restart" is set in the debian/control file
+Unattended-Upgrade::IgnoreAppsRequireRestart "true";
+
+// Automatically run "dpkg --force-confold --configure -a".
+Unattended-Upgrade::AutoFixInterruptedDpkg "true";
diff --git a/mkosi.extra/etc/docker-pi-hole-version b/mkosi.extra/etc/docker-pi-hole-version
new file mode 100644
index 0000000..db6ecdd
--- /dev/null
+++ b/mkosi.extra/etc/docker-pi-hole-version
@@ -0,0 +1 @@
+v4.3.2
diff --git a/mkosi.extra/etc/systemd/network/80-container-host0.network b/mkosi.extra/etc/systemd/network/80-container-host0.network
new file mode 120000
index 0000000..dc1dc0c
--- /dev/null
+++ b/mkosi.extra/etc/systemd/network/80-container-host0.network
@@ -0,0 +1 @@
+/dev/null \ No newline at end of file
diff --git a/mkosi.extra/etc/systemd/network/wired.network b/mkosi.extra/etc/systemd/network/wired.network
new file mode 100644
index 0000000..126654d
--- /dev/null
+++ b/mkosi.extra/etc/systemd/network/wired.network
@@ -0,0 +1,15 @@
+[Match]
+Name=host0
+
+[Network]
+DHCP=false
+DNS=127.0.0.1
+Domains=dnns.no
+Address=192.168.1.250
+Gateway=192.168.1.1
+Address=10.71.2.2/24
+
+[Route]
+Gateway=10.71.2.1
+Destination=10.71.2.0/24
+GatewayOnlink=true