aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc
diff options
context:
space:
mode:
authorLibravatar Arnold Sommerfeld <sommerfeld@strisemarx.com>2023-05-17 18:44:48 +0100
committerLibravatar Arnold Sommerfeld <sommerfeld@strisemarx.com>2023-10-18 11:16:43 +0100
commitb487984ecc61c6229cf92550030745c192fd3d0b (patch)
tree937e598c941fc1172467aeeed8ef51cbfceaca62 /etc
downloaddotfiles-b487984ecc61c6229cf92550030745c192fd3d0b.tar.gz
dotfiles-b487984ecc61c6229cf92550030745c192fd3d0b.tar.bz2
dotfiles-b487984ecc61c6229cf92550030745c192fd3d0b.zip
first commit
Diffstat (limited to 'etc')
-rw-r--r--etc/modules-load.d/tcp_bbr.conf1
-rw-r--r--etc/pacman.d/hooks/orphans.hook12
-rw-r--r--etc/sysctl.d/99-sysctl.conf19
-rw-r--r--etc/systemd/system.conf.d/timeout.conf3
4 files changed, 35 insertions, 0 deletions
diff --git a/etc/modules-load.d/tcp_bbr.conf b/etc/modules-load.d/tcp_bbr.conf
new file mode 100644
index 0000000..0e83071
--- /dev/null
+++ b/etc/modules-load.d/tcp_bbr.conf
@@ -0,0 +1 @@
+tcp_bbr
diff --git a/etc/pacman.d/hooks/orphans.hook b/etc/pacman.d/hooks/orphans.hook
new file mode 100644
index 0000000..48c1d8d
--- /dev/null
+++ b/etc/pacman.d/hooks/orphans.hook
@@ -0,0 +1,12 @@
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Type = Package
+Target = *
+
+[Action]
+Description = Searching for orphaned packages...
+When = PostTransaction
+Exec = /usr/bin/bash -c "/usr/bin/pacman -Qtd || /usr/bin/echo '==> no orphans found.'"
+#Exec = /usr/bin/bash -c "[[ if $(/usr/bin/pacman -Qtdq) = 0 ]] && /usr/bin/pacman -Rns $(/usr/bin/pacman -Qtdq) || /usr/bin/echo '==> No orphaned packages found.'"
diff --git a/etc/sysctl.d/99-sysctl.conf b/etc/sysctl.d/99-sysctl.conf
new file mode 100644
index 0000000..c6fde05
--- /dev/null
+++ b/etc/sysctl.d/99-sysctl.conf
@@ -0,0 +1,19 @@
+kernel.sysrq = 1
+kernel.dmesg_restrict = 0
+kernel.yama.ptrace_scope = 0
+kernel.perf_event_paranoid = 0
+net.core.netdev_max_backlog = 16384
+net.core.somaxconn = 8192
+net.ipv4.tcp_fastopen = 3
+net.ipv4.tcp_max_syn_backlog = 8192
+net.ipv4.tcp_max_tw_buckets = 2000000
+net.ipv4.tcp_tw_reuse = 1
+net.ipv4.tcp_fin_timeout = 10
+net.ipv4.tcp_slow_start_after_idle = 0
+net.ipv4.tcp_keepalive_time = 60
+net.ipv4.tcp_keepalive_intvl = 10
+net.ipv4.tcp_keepalive_probes = 6
+net.ipv4.tcp_mtu_probing = 1
+net.core.default_qdisc = cake
+net.ipv4.tcp_congestion_control = bbr
+vm.vfs_cache_pressure = 50
diff --git a/etc/systemd/system.conf.d/timeout.conf b/etc/systemd/system.conf.d/timeout.conf
new file mode 100644
index 0000000..b48f3bb
--- /dev/null
+++ b/etc/systemd/system.conf.d/timeout.conf
@@ -0,0 +1,3 @@
+[Manager]
+DefaultTimeoutStartSec=10s
+DefaultTimeoutStopSec=10s