mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-21 05:47:23 +02:00
Compare commits
10 Commits
4c2712a605
...
85dbc413f0
Author | SHA1 | Date | |
---|---|---|---|
85dbc413f0 | |||
7d8fe8c1fa | |||
0327162daa | |||
f8f71d77a2 | |||
4286b4a22f | |||
eef1268fed | |||
fbc82b81f4 | |||
214966ae54 | |||
6ba99feb58 | |||
0dc32a525a |
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
4
etc/systemd/system/.gitignore
vendored
4
etc/systemd/system/.gitignore
vendored
@ -1,4 +0,0 @@
|
|||||||
NetworkManager-wait-online.service
|
|
||||||
systemd-networkd-wait-online.service
|
|
||||||
power-profiles-daemon.service
|
|
||||||
systemd-rfkill.service
|
|
@ -1 +0,0 @@
|
|||||||
/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 +0,0 @@
|
|||||||
/dev/null
|
|
8
etc/systemd/system/service.d/for-network-online.conf
Normal file
8
etc/systemd/system/service.d/for-network-online.conf
Normal 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
|
9
etc/systemd/system/start-unbound.service
Normal file
9
etc/systemd/system/start-unbound.service
Normal 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
|
@ -1 +0,0 @@
|
|||||||
/dev/null
|
|
@ -1 +0,0 @@
|
|||||||
/dev/null
|
|
23
etc/systemd/system/tlp-masker.bash
Executable file
23
etc/systemd/system/tlp-masker.bash
Executable 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
|
@ -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
|
|
1
etc/systemd/system/unbound.service.d/for-network-online.conf
Symbolic link
1
etc/systemd/system/unbound.service.d/for-network-online.conf
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../service.d/for-network-online.conf
|
1
etc/systemd/system/yggdrasil.service.d/for-network-online.conf
Symbolic link
1
etc/systemd/system/yggdrasil.service.d/for-network-online.conf
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../service.d/for-network-online.conf
|
Loading…
x
Reference in New Issue
Block a user