diff options
author | dennis <dennis@mrslave> | 2019-11-12 11:14:01 +0100 |
---|---|---|
committer | dennis <dennis@mrslave> | 2019-11-12 11:14:01 +0100 |
commit | 4ad6f5bc15e4c7aa98c4d0ea95c657aa67a74d0e (patch) | |
tree | 9649b7fed387c0e7cf9c48e83c862234425b80cf /mkosi.extra | |
parent | fuck ubuntus motd (diff) | |
download | mkosi-plex-4ad6f5bc15e4c7aa98c4d0ea95c657aa67a74d0e.tar.gz |
moving from skeleton to extra
Diffstat (limited to 'mkosi.extra')
5 files changed, 54 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/systemd/network/80-container-host0.network b/mkosi.extra/etc/systemd/network/80-container-host0.network new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/mkosi.extra/etc/systemd/network/80-container-host0.network diff --git a/mkosi.extra/etc/systemd/network/wired.network b/mkosi.extra/etc/systemd/network/wired.network new file mode 100644 index 0000000..0eb29c7 --- /dev/null +++ b/mkosi.extra/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 diff --git a/mkosi.extra/etc/systemd/system/multi-user.target.wants/plexmediaserver.service b/mkosi.extra/etc/systemd/system/multi-user.target.wants/plexmediaserver.service new file mode 120000 index 0000000..7dd4439 --- /dev/null +++ b/mkosi.extra/etc/systemd/system/multi-user.target.wants/plexmediaserver.service @@ -0,0 +1 @@ +/lib/systemd/system/plexmediaserver.service
\ No newline at end of file |