mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-21 05:47:23 +02:00
Compare commits
No commits in common. "85dbc413f02bdbd69ed31b29c98253e686a3ded8" and "4c2712a6052b28a7e92041fe4dacf8ee3cd688f2" have entirely different histories.
85dbc413f0
...
4c2712a605
@ -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.8"
|
rev: "v4.0.0-alpha.6"
|
||||||
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
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
# 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
|
||||||
|
|
||||||
|
@ -4,8 +4,7 @@ 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=allow-downgrade
|
#DNSSEC=no
|
||||||
DNSSEC=yes
|
|
||||||
# Not needed on localhost
|
# Not needed on localhost
|
||||||
DNSOverTLS=no
|
DNSOverTLS=no
|
||||||
# Done by Unbound
|
# Done by Unbound
|
||||||
|
4
etc/systemd/system/.gitignore
vendored
Normal file
4
etc/systemd/system/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
NetworkManager-wait-online.service
|
||||||
|
systemd-networkd-wait-online.service
|
||||||
|
power-profiles-daemon.service
|
||||||
|
systemd-rfkill.service
|
1
etc/systemd/system/NetworkManager-wait-online.service
Symbolic link
1
etc/systemd/system/NetworkManager-wait-online.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/dev/null
|
@ -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
|
||||||
|
1
etc/systemd/system/power-profiles-daemon.service
Symbolic link
1
etc/systemd/system/power-profiles-daemon.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/dev/null
|
@ -1,8 +0,0 @@
|
|||||||
# 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
|
|
@ -1,9 +0,0 @@
|
|||||||
[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
|
|
1
etc/systemd/system/systemd-networkd-wait-online.service
Symbolic link
1
etc/systemd/system/systemd-networkd-wait-online.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/dev/null
|
1
etc/systemd/system/systemd-rfkill.service
Symbolic link
1
etc/systemd/system/systemd-rfkill.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/dev/null
|
@ -1,23 +0,0 @@
|
|||||||
#!/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
|
|
11
etc/systemd/system/unbound.service.d/fedora-network-pre.conf
Normal file
11
etc/systemd/system/unbound.service.d/fedora-network-pre.conf
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# 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
|
@ -1 +0,0 @@
|
|||||||
../service.d/for-network-online.conf
|
|
@ -1 +0,0 @@
|
|||||||
../service.d/for-network-online.conf
|
|
Loading…
x
Reference in New Issue
Block a user