Add systemd config files
This commit is contained in:
parent
f95fc1f0b6
commit
3b03b97e83
13 changed files with 125 additions and 1 deletions
10
README.md
10
README.md
|
@ -16,6 +16,16 @@ Running `install.sh` or `uninstall.sh` will delete and change some things in you
|
||||||
- /etc/makepkg.conf
|
- /etc/makepkg.conf
|
||||||
- /etc/mkinitcpio.conf
|
- /etc/mkinitcpio.conf
|
||||||
- /etc/sudo.conf
|
- /etc/sudo.conf
|
||||||
|
- /etc/systemd/coredump.conf
|
||||||
|
- /etc/systemd/journald.conf
|
||||||
|
- /etc/systemd/logind.conf
|
||||||
|
- /etc/systemd/networkd.conf
|
||||||
|
- /etc/systemd/oomd.conf
|
||||||
|
- /etc/systemd/pstore.conf
|
||||||
|
- /etc/systemd/resolved.conf
|
||||||
|
- /etc/systemd/sleep.conf
|
||||||
|
- /etc/systemd/system.conf
|
||||||
|
- /etc/systemd/user.conf
|
||||||
|
|
||||||
## Recommendation
|
## Recommendation
|
||||||
Please, do not modify any files. It will only cause issues during the update process. \
|
Please, do not modify any files. It will only cause issues during the update process. \
|
||||||
|
|
15
install.sh
15
install.sh
|
@ -46,6 +46,18 @@ link "archlinux/paru.conf" "etc/paru.conf"
|
||||||
link "archlinux/makepkg.conf" "etc/makepkg.conf"
|
link "archlinux/makepkg.conf" "etc/makepkg.conf"
|
||||||
link "archlinux/mkinitcpio.conf" "etc/mkinitcpio.conf"
|
link "archlinux/mkinitcpio.conf" "etc/mkinitcpio.conf"
|
||||||
|
|
||||||
|
# systemd
|
||||||
|
link "systemd/coredump.conf" "etc/systemd/coredump.conf"
|
||||||
|
link "systemd/journald.conf" "etc/systemd/journald.conf"
|
||||||
|
link "systemd/logind.conf" "etc/systemd/logind.conf"
|
||||||
|
link "systemd/networkd.conf" "etc/systemd/networkd.conf"
|
||||||
|
link "systemd/oomd.conf" "etc/systemd/oomd.conf"
|
||||||
|
link "systemd/pstore.conf" "etc/systemd/pstore.conf"
|
||||||
|
link "systemd/resolved.conf" "etc/systemd/resolved.conf"
|
||||||
|
link "systemd/sleep.conf" "etc/systemd/sleep.conf"
|
||||||
|
link "systemd/system.conf" "etc/systemd/system.conf"
|
||||||
|
link "systemd/user.conf" "etc/systemd/user.conf"
|
||||||
|
|
||||||
# programs
|
# programs
|
||||||
link "lone-files/sudo.conf" "etc/sudo.conf"
|
link "lone-files/sudo.conf" "etc/sudo.conf"
|
||||||
|
|
||||||
|
@ -56,5 +68,6 @@ link "bin/updater" "usr/local/bin/sysdotfiles-updater"
|
||||||
# write install file
|
# write install file
|
||||||
echo "pls don't remove" > "/etc/.jstm_sysdotfiles"
|
echo "pls don't remove" > "/etc/.jstm_sysdotfiles"
|
||||||
|
|
||||||
# regenerate locales
|
# do post-install stuff
|
||||||
locale-gen
|
locale-gen
|
||||||
|
systemctl reload-daemon
|
||||||
|
|
5
systemd/coredump.conf
Normal file
5
systemd/coredump.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[Coredump]
|
||||||
|
Storage=journal
|
||||||
|
Compress=yes
|
||||||
|
ProcessSizeMax=1G
|
||||||
|
MaxUse=3G
|
24
systemd/journald.conf
Normal file
24
systemd/journald.conf
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
[Journal]
|
||||||
|
Storage=auto
|
||||||
|
Compress=yes
|
||||||
|
SplitMode=uid
|
||||||
|
SyncIntervalSec=1m
|
||||||
|
SystemMaxUse=512M
|
||||||
|
#SystemKeepFree=
|
||||||
|
#SystemMaxFileSize=
|
||||||
|
#SystemMaxFiles=100
|
||||||
|
#RuntimeMaxUse=
|
||||||
|
#RuntimeKeepFree=
|
||||||
|
#RuntimeMaxFileSize=
|
||||||
|
#RuntimeMaxFiles=100
|
||||||
|
MaxRetentionSec=1week
|
||||||
|
MaxFileSec=1day
|
||||||
|
ForwardToSyslog=no
|
||||||
|
ForwardToKMsg=true
|
||||||
|
ForwardToConsole=no
|
||||||
|
ForwardToWall=true
|
||||||
|
MaxLevelKMsg=warn
|
||||||
|
MaxLevelWall=emerg
|
||||||
|
LineMax=48K
|
||||||
|
ReadKMsg=yes
|
||||||
|
Audit=yes
|
21
systemd/logind.conf
Normal file
21
systemd/logind.conf
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
[Login]
|
||||||
|
NAutoVTs=10
|
||||||
|
ReserveVT=10
|
||||||
|
KillUserProcesses=yes
|
||||||
|
KillExcludeUsers=root
|
||||||
|
UserStopDelaySec=10
|
||||||
|
HandlePowerKey=poweroff
|
||||||
|
HandlePowerKeyLongPress=ignore
|
||||||
|
HandleRebootKey=reboot
|
||||||
|
HandleRebootKeyLongPress=poweroff
|
||||||
|
HandleSuspendKey=suspend
|
||||||
|
HandleSuspendKeyLongPress=ignore
|
||||||
|
HandleHibernateKey=hibernate
|
||||||
|
HandleHibernateKeyLongPress=ignore
|
||||||
|
HandleLidSwitch=suspend
|
||||||
|
HandleLidSwitchExternalPower=suspend
|
||||||
|
HoldoffTimeoutSec=30s
|
||||||
|
IdleAction=ignore
|
||||||
|
RuntimeDirectorySize=10%
|
||||||
|
RemoveIPC=yes
|
||||||
|
StopIdleSessionSec=infinity
|
5
systemd/networkd.conf
Normal file
5
systemd/networkd.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[Network]
|
||||||
|
SpeedMeter=no
|
||||||
|
ManageForeignRoutingPolicyRules=yes
|
||||||
|
ManageForeignRoutes=yes
|
||||||
|
IPv6PrivacyExtensions=no
|
2
systemd/oomd.conf
Normal file
2
systemd/oomd.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[OOM]
|
||||||
|
SwapUsedLimit=85%
|
2
systemd/pstore.conf
Normal file
2
systemd/pstore.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[PStore]
|
||||||
|
Storage=journal
|
8
systemd/resolved.conf
Normal file
8
systemd/resolved.conf
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[Resolve]
|
||||||
|
DNS=127.0.0.1
|
||||||
|
DNS=::1
|
||||||
|
FallbackDNS=127.0.0.1
|
||||||
|
FallbackDNS=::1
|
||||||
|
Cache=no
|
||||||
|
CacheFromLocalhost=no
|
||||||
|
DNSStubListener=no
|
5
systemd/sleep.conf
Normal file
5
systemd/sleep.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[Sleep]
|
||||||
|
AllowSuspend=false
|
||||||
|
AllowHibernation=false
|
||||||
|
AllowSuspendThenHibernate=false
|
||||||
|
AllowHybridSleep=false
|
9
systemd/system.conf
Normal file
9
systemd/system.conf
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[Manager]
|
||||||
|
LogLevel=info
|
||||||
|
LogColor=yes
|
||||||
|
LogLocation=no
|
||||||
|
LogTime=no
|
||||||
|
DumpCore=yes
|
||||||
|
CtrlAltDelBurstAction=reboot-force
|
||||||
|
DefaultTimeoutStartSec=20s
|
||||||
|
DefaultTimeoutStopSec=20s
|
8
systemd/user.conf
Normal file
8
systemd/user.conf
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[Manager]
|
||||||
|
LogLevel=info
|
||||||
|
LogTarget=auto
|
||||||
|
LogColor=yes
|
||||||
|
LogLocation=no
|
||||||
|
LogTime=no
|
||||||
|
DefaultTimeoutStartSec=20s
|
||||||
|
DefaultTimeoutStopSec=20s
|
12
uninstall.sh
12
uninstall.sh
|
@ -33,6 +33,18 @@ unlink "etc/paru.conf"
|
||||||
unlink "etc/makepkg.conf"
|
unlink "etc/makepkg.conf"
|
||||||
unlink "etc/mkinitcpio.conf"
|
unlink "etc/mkinitcpio.conf"
|
||||||
|
|
||||||
|
# systemd
|
||||||
|
unlink "etc/systemd/coredump.conf"
|
||||||
|
unlink "etc/systemd/journald.conf"
|
||||||
|
unlink "etc/systemd/logind.conf"
|
||||||
|
unlink "etc/systemd/networkd.conf"
|
||||||
|
unlink "etc/systemd/oomd.conf"
|
||||||
|
unlink "etc/systemd/pstore.conf"
|
||||||
|
unlink "etc/systemd/resolved.conf"
|
||||||
|
unlink "etc/systemd/sleep.conf"
|
||||||
|
unlink "etc/systemd/system.conf"
|
||||||
|
unlink "etc/systemd/user.conf"
|
||||||
|
|
||||||
# programs
|
# programs
|
||||||
unlink "etc/sudo.conf"
|
unlink "etc/sudo.conf"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue