mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-06-27 09:47:20 +02:00
Compare commits
11 Commits
8586fd7dc1
...
ec235e7f90
Author | SHA1 | Date | |
---|---|---|---|
ec235e7f90 | |||
ed3cd60a42 | |||
70b7380e8f | |||
b3e2989c19 | |||
ee8720a71b | |||
d630796e6d | |||
6362661113 | |||
d5c7bc8160 | |||
58dc23dae4 | |||
d98b2ebd22 | |||
28b72a211a |
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,6 +14,7 @@
|
|||||||
!.nvmrc
|
!.nvmrc
|
||||||
!.pre-commit-config.yaml
|
!.pre-commit-config.yaml
|
||||||
!.prettierignore
|
!.prettierignore
|
||||||
|
!.python-version
|
||||||
!.renovate-shared.json*
|
!.renovate-shared.json*
|
||||||
!.reuse
|
!.reuse
|
||||||
|
|
||||||
|
@ -10,8 +10,10 @@ ci:
|
|||||||
autoupdate_schedule: quarterly
|
autoupdate_schedule: quarterly
|
||||||
|
|
||||||
default_language_version:
|
default_language_version:
|
||||||
node: lts
|
node: "lts"
|
||||||
ruby: .ruby-version
|
# Remember .python-version !
|
||||||
|
python: "3.12"
|
||||||
|
ruby: ".ruby-version"
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
1
.python-version
Normal file
1
.python-version
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.12.4
|
@ -1,5 +1,8 @@
|
|||||||
# Only let child processes to be debugged
|
# Only let child processes to be debugged
|
||||||
# https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
|
# https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
|
||||||
#kernel.yama.ptrace_scope = 1
|
#kernel.yama.ptrace_scope = 1
|
||||||
# Disable debuggers entirely
|
# Only processes with CAP_SYS_PTRACE capability are allowed unless children
|
||||||
kernel.yama.ptrace_scope = 3
|
# call PTRACE_TRACEME.
|
||||||
|
kernel.yama.ptrace_scope = 2
|
||||||
|
# Disable debuggers entirely. Cannot be unset [without reboot].
|
||||||
|
#kernel.yama.ptrace_scope = 3
|
||||||
|
1
etc/systemd/system/.gitignore
vendored
Normal file
1
etc/systemd/system/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
ssh.service.d
|
@ -0,0 +1,6 @@
|
|||||||
|
[Service]
|
||||||
|
# This drop-in will make the service deduplicate everything.
|
||||||
|
# WARNING: This is most likely a bad idea. My excuse is this system being on
|
||||||
|
# a small USB STICK with nothing important on it, what is yours?
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=-/usr/bin/duperemove -rdhq --hashfile=/root/rootfs.hash /
|
@ -5,8 +5,10 @@ Wants=sysctl-p--system.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
TimeoutStartSec=infinity
|
TimeoutStartSec=infinity
|
||||||
# - means it can fail, without failing those after it
|
# - means it can fail, without failing those after it.
|
||||||
# I always want DNS.
|
# These aren't given --now as THEY WOULD INFINITE LOOP.
|
||||||
|
ExecStartPre=-/usr/bin/systemctl enable aminda-nocron-rebootish.service
|
||||||
|
ExecStartPre=-/usr/bin/systemctl enable aminda-nocron-rebootish.timer
|
||||||
ExecStartPre=-/usr/bin/systemctl enable --now unbound.service
|
ExecStartPre=-/usr/bin/systemctl enable --now unbound.service
|
||||||
ExecStartPre=-/usr/bin/systemctl enable --now systemd-resolved.service
|
ExecStartPre=-/usr/bin/systemctl enable --now systemd-resolved.service
|
||||||
ExecStartPre=-/usr/sbin/sysctl net.ipv6.conf.all.disable_ipv6=0
|
ExecStartPre=-/usr/sbin/sysctl net.ipv6.conf.all.disable_ipv6=0
|
||||||
|
@ -6,6 +6,8 @@ Type=oneshot
|
|||||||
TimeoutStartSec=infinity
|
TimeoutStartSec=infinity
|
||||||
# - means it can fail, without failing those after it
|
# - means it can fail, without failing those after it
|
||||||
# Another attempt at ensuring Yggdrasil works with nordvpnd
|
# Another attempt at ensuring Yggdrasil works with nordvpnd
|
||||||
|
ExecStartPre=-/usr/bin/systemctl enable --now aminda-nocron-reboot.service
|
||||||
|
ExecStartPre=-/usr/bin/systemctl enable --now aminda-nocron-reboot.timer
|
||||||
ExecStartPre=-/usr/sbin/sysctl net.ipv6.conf.all.disable_ipv6=0
|
ExecStartPre=-/usr/sbin/sysctl net.ipv6.conf.all.disable_ipv6=0
|
||||||
ExecStartPre=-/usr/bin/systemctl enable --now tlp
|
ExecStartPre=-/usr/bin/systemctl enable --now tlp
|
||||||
ExecStart=-/usr/bin/systemctl restart yggdrasil.service
|
ExecStart=-/usr/bin/systemctl restart yggdrasil.service
|
||||||
|
1
etc/systemd/system/ssh.service.d
Symbolic link
1
etc/systemd/system/ssh.service.d
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
sshd.service.d
|
1
etc/systemd/system/sshd.service.d/never-fail.conf
Symbolic link
1
etc/systemd/system/sshd.service.d/never-fail.conf
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../service.d/never-fail.conf
|
6
etc/systemd/user/nordvpn-off.service
Normal file
6
etc/systemd/user/nordvpn-off.service
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Disconnect and disable NordVPN on user systemd start
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/local/bin/nordvpn-off
|
11
etc/systemd/user/nordvpn-off.timer
Normal file
11
etc/systemd/user/nordvpn-off.timer
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Turn off NordVPN on login
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnUnitActiveSec=1
|
||||||
|
OnBootSec=2
|
||||||
|
RandomizedDelaySec=3
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
10
etc/xdg/autostart/kgx-tmux.desktop
Normal file
10
etc/xdg/autostart/kgx-tmux.desktop
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
NoDisplay=true
|
||||||
|
Terminal=true
|
||||||
|
Exec=kgx --command="sh --norc -c tmux"
|
||||||
|
Name=Tmux in Console
|
||||||
|
Name[fi]=Tmux Consolessa
|
||||||
|
Comment=Command line autostart
|
||||||
|
Comment[fi]=Komentorivin automaattikäynnistys
|
@ -311,7 +311,7 @@ fi
|
|||||||
|
|
||||||
# https://github.com/pyenv/pyenv
|
# https://github.com/pyenv/pyenv
|
||||||
if [ -d ~/.pyenv/bin ]; then
|
if [ -d ~/.pyenv/bin ]; then
|
||||||
PATH="$HOME/.pyenv/bin:$PATH"
|
PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
|
||||||
pyenv init > /dev/null 2>&1
|
pyenv init > /dev/null 2>&1
|
||||||
# Worth considering (and verifying before running)
|
# Worth considering (and verifying before running)
|
||||||
# git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
|
# git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
|
||||||
|
2
rc/zshrc
2
rc/zshrc
@ -276,7 +276,7 @@ fi
|
|||||||
|
|
||||||
# https://github.com/pyenv/pyenv
|
# https://github.com/pyenv/pyenv
|
||||||
if [ -d ~/.pyenv/bin ]; then
|
if [ -d ~/.pyenv/bin ]; then
|
||||||
PATH="$HOME/.pyenv/bin:$PATH"
|
PATH="$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH"
|
||||||
pyenv init > /dev/null 2>&1
|
pyenv init > /dev/null 2>&1
|
||||||
# Worth considering (and verifying before running)
|
# Worth considering (and verifying before running)
|
||||||
# git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
|
# git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# Workaround it appearing to break SSH especially on family PC
|
||||||
|
@reboot /bin/bash -c "/bin/nordvpn set killswitch off;/usr/bin/systemctl disable --now nordvpnd.{service.socket} --quiet"
|
||||||
|
|
||||||
# Ensure /etc/sysctl.d/ gets read
|
# Ensure /etc/sysctl.d/ gets read
|
||||||
@reboot /usr/sbin/sysctl -p --system >/dev/null 2>&1
|
@reboot /usr/sbin/sysctl -p --system >/dev/null 2>&1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user