Compare commits

...

10 Commits

15 changed files with 49 additions and 23 deletions

View File

@ -122,7 +122,7 @@ repos:
# prettier, opinionated code formatter # prettier, opinionated code formatter
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.6" rev: "v4.0.0-alpha.8"
hooks: hooks:
- id: prettier - id: prettier
# These are handled by Black below or pretty-format-json above # These are handled by Black below or pretty-format-json above

View File

@ -4,6 +4,8 @@
# Local resolver (Unbound?) # Local resolver (Unbound?)
#nameserver 127.0.0.1 #nameserver 127.0.0.1
#nameserver ::1 #nameserver ::1
# systemd-resolved
#nameserver 127.0.0.51
# dnscrypt-proxy directly (Debian/systemd) # dnscrypt-proxy directly (Debian/systemd)
#nameserver 127.0.2.1 #nameserver 127.0.2.1

View File

@ -4,7 +4,8 @@ DNS=127.0.0.1
DNS=::1 DNS=::1
Domains=~. Domains=~.
# Done better by Unbound, no failed-auxiliary (https://github.com/systemd/systemd/issues/9867) # Done better by Unbound, no failed-auxiliary (https://github.com/systemd/systemd/issues/9867)
#DNSSEC=no #DNSSEC=allow-downgrade
DNSSEC=yes
# Not needed on localhost # Not needed on localhost
DNSOverTLS=no DNSOverTLS=no
# Done by Unbound # Done by Unbound

View File

@ -1,4 +0,0 @@
NetworkManager-wait-online.service
systemd-networkd-wait-online.service
power-profiles-daemon.service
systemd-rfkill.service

View File

@ -1 +0,0 @@
/dev/null

View File

@ -11,5 +11,5 @@ and I forget to update this README file if that happens.
- Waiting for network devices to have IP address (**I only use this for - Waiting for network devices to have IP address (**I only use this for
cables**) https://wiki.freedesktop.org/www/Software/systemd/NetworkTarget/#cutthecraphowdoimakenetwork.targetworkforme cables**) https://wiki.freedesktop.org/www/Software/systemd/NetworkTarget/#cutthecraphowdoimakenetwork.targetworkforme
_ systemctl enable NetworkManager-wait-online.service - `systemctl enable NetworkManager-wait-online.service`
_ systemctl enable systemd-networkd-wait-online.service - `systemctl enable systemd-networkd-wait-online.service`

View File

@ -1 +0,0 @@
/dev/null

View File

@ -0,0 +1,8 @@
# Ensure running before network online
# WARNING! Regardless of the below, it works on Lumina
#systemd[1]: unbound.service: Found ordering cycle on network-online.target/start
#systemd[1]: unbound.service: Found dependency on unbound.service/start
#systemd[1]: unbound.service: Job network-online.target/start deleted to break ordering cycle starting with unbound.service/start
[Unit]
After=network.target
Before=network-online.target nss-lookup.target

View File

@ -0,0 +1,9 @@
[Unit]
Description=poke unbound as a stupid workaround for it not wanting to start with wireless devices
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl start unbound --quiet
[Install]
WantedBy=multi-user.target

View File

@ -1 +0,0 @@
/dev/null

View File

@ -1 +0,0 @@
/dev/null

View File

@ -0,0 +1,23 @@
#!/usr/bin/env bash
# This is a simple script to mask services in conflict with tlp
set -x
# and when doing that, why not enable tlp?
tlp start
tlp-rdw enable
# The service is only meant for boot so no starting now
systemctl enable tlp.service
# Stop the services if they are running
systemctl disable --quiet --now power-profiles-daemon.service
systemctl disable --quiet --now systemd-rfkill.service
# Actual masking
systemctl mask power-profiles-daemon.service
systemctl mask systemd-rfkill.service systemd-rfkill.socket
# In case this script is ran multiple times in succession like when I did
# when writing it
systemctl daemon-reload
set +x

View File

@ -1,11 +0,0 @@
# This override attempts to ensure Unbound is running when network gets
# connected as opposed to starting at that time to ensure DNS functions for
# everything dependent on DNS in addition to just internet connectivity
[Unit]
After=
# Copy-pasted from Fedora (systemtl show unbound.service) except
# network-online.target is network-pre.target
After=unbound-keygen.service unbound-anchor.service systemd-journald.socket sysinit.target network-pre.target system.slice basic.target
[Install]
WantedBy=multi-user.target network-online.target

View File

@ -0,0 +1 @@
../service.d/for-network-online.conf

View File

@ -0,0 +1 @@
../service.d/for-network-online.conf