mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-24 16:28:22 -05:00
Some system config changes
- startwl: move `chmod` out of if statement (ensure $XDG_RUNTIME_DIR properly has 0700 permission) - doas: add Void specified config - nftables: add note for future changes to block rules - grub: disable submenu
This commit is contained in:
parent
ea74e9076e
commit
12e151d3e1
@ -8,11 +8,8 @@ if [ -z "${XDG_RUNTIME_DIR}" ]
|
||||
then
|
||||
userid=$(id -u ${USER})
|
||||
export XDG_RUNTIME_DIR="$(mktemp -d /tmp/${userid}-runtime-XXXXXX)"
|
||||
if [ ! -d "${XDG_RUNTIME_DIR}" ]
|
||||
then
|
||||
mkdir -p "${XDG_RUNTIME_DIR}"
|
||||
[ ! -d "${XDG_RUNTIME_DIR}" ] && mkdir -p "${XDG_RUNTIME_DIR}"
|
||||
chmod 0700 "${XDG_RUNTIME_DIR}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Valid values: seatd, logind
|
||||
|
@ -23,6 +23,7 @@ GRUB_COLOR_NORMAL="white/black"
|
||||
GRUB_COLOR_HIGHLIGHT="black/white"
|
||||
#GRUB_DISABLE_OS_PROBER=true
|
||||
GRUB_ENABLE_CRYPTODISK=y
|
||||
GRUB_DISABLE_SUBMENU=y
|
||||
|
||||
# To generate new font:
|
||||
# grub-mkfont -s 24 -o /boot/grub/fonts/hack.pf2 ~/Hack-Regular.ttf
|
||||
|
@ -1 +1,6 @@
|
||||
permit persist :wheel as root
|
||||
# Void specified
|
||||
permit persist setenv { SVDIR=/var/service LANG=$LANG } :wheel as root
|
||||
permit nopass :wheel cmd reboot
|
||||
permit nopass :wheel cmd poweroff
|
||||
permit nopass :wheel cmd zzz
|
||||
permit nopass :wheel cmd vsv args
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
# --------------------------------------------------------------------------------- #
|
||||
|
||||
# TODO: move block rules to mangle for faster blocking time (perfomance)
|
||||
|
||||
flush ruleset
|
||||
|
||||
# TCP ports to accept (both IPv4 and IPv6)
|
||||
|
Loading…
Reference in New Issue
Block a user