This commit is contained in:
Eduard Tolosa 2019-08-18 16:00:01 -05:00
parent 4383c313bc
commit 4e222c963e
66 changed files with 659 additions and 11 deletions

21
etc/systemd/coredump.conf Normal file
View file

@ -0,0 +1,21 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See coredump.conf(5) for details.
[Coredump]
#Storage=external
#Compress=yes
#ProcessSizeMax=2G
#ExternalSizeMax=2G
#JournalSizeMax=767M
#MaxUse=
#KeepFree=

View file

@ -0,0 +1,19 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See journal-remote.conf(5) for details
[Remote]
# Seal=false
# SplitMode=host
# ServerKeyFile=/etc/ssl/private/journal-remote.pem
# ServerCertificateFile=/etc/ssl/certs/journal-remote.pem
# TrustedCertificateFile=/etc/ssl/ca/trusted.pem

View file

@ -0,0 +1,18 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See journal-upload.conf(5) for details
[Upload]
# URL=
# ServerKeyFile=/etc/ssl/private/journal-upload.pem
# ServerCertificateFile=/etc/ssl/certs/journal-upload.pem
# TrustedCertificateFile=/etc/ssl/ca/trusted.pem

42
etc/systemd/journald.conf Normal file
View file

@ -0,0 +1,42 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See journald.conf(5) for details.
[Journal]
#Storage=volatile
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitIntervalSec=30s
#RateLimitBurst=1000
SystemMaxUse=50M
#SystemKeepFree=
#SystemMaxFileSize=
#SystemMaxFiles=100
#RuntimeMaxUse=
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
#MaxRetentionSec=
MaxFileSec=1week
#ForwardToSyslog=no
#ForwardToKMsg=no
#ForwardToConsole=no
#ForwardToWall=yes
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
#MaxLevelWall=emerg
#LineMax=48K

View file

@ -0,0 +1,43 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See journald.conf(5) for details.
[Journal]
#Storage=auto
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitIntervalSec=30s
#RateLimitBurst=10000
#SystemMaxUse=
#SystemKeepFree=
#SystemMaxFileSize=
#SystemMaxFiles=100
#RuntimeMaxUse=
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
#MaxRetentionSec=
#MaxFileSec=1month
#ForwardToSyslog=no
#ForwardToKMsg=no
#ForwardToConsole=no
#ForwardToWall=yes
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
#MaxLevelWall=emerg
#LineMax=48K
#ReadKMsg=yes

38
etc/systemd/logind.conf Normal file
View file

@ -0,0 +1,38 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=1
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
HandlePowerKey=ignore
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

View file

@ -0,0 +1,12 @@
[Match]
Name=enp2s0
[Network]
DHCP=ipv4
DNS=9.9.9.9
DNSOverTLS=opportunistic
DNSSEC=true
[DHCP]
RouteMetric=10
UseDNS=no

View file

@ -0,0 +1,12 @@
[Match]
Name=wlp3s0
[Network]
DHCP=ipv4
DNS=9.9.9.9
DNSOverTLS=opportunistic
DNSSEC=true
[DHCP]
RouteMetric=20
UseDNS=no

View file

@ -0,0 +1,12 @@
[Match]
Name=wlp0s20f0u2
[Network]
DHCP=ipv4
DNS=9.9.9.9
DNSOverTLS=opportunistic
DNSSEC=true
[DHCP]
RouteMetric=30
UseDNS=no

16
etc/systemd/networkd.conf Normal file
View file

@ -0,0 +1,16 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See networkd.conf(5) for details
[DHCP]
#DUIDType=vendor
#DUIDRawData=

View file

@ -5,7 +5,7 @@ Name=bond1
DHCP=ipv4
DNSOverTLS=opportunistic
DNSSEC=true
DNS=9.9.9.9
DNS=9.9.9.10
[DHCP]
UseDNS=no

View file

@ -1,5 +1,5 @@
[Match]
Name=wlan0
Name=wlp3s0
[Network]
LinkLocalAddressing=no

View file

@ -0,0 +1,12 @@
[Match]
Name=enp2s0
[Network]
DHCP=ipv4
DNS=9.9.9.9
DNSOverTLS=opportunistic
DNSSEC=true
[DHCP]
RouteMetric=10
UseDNS=no

View file

@ -0,0 +1,12 @@
[Match]
Name=wlp3s0
[Network]
DHCP=ipv4
DNS=9.9.9.9
DNSOverTLS=opportunistic
DNSSEC=true
[DHCP]
RouteMetric=20
UseDNS=no

View file

@ -0,0 +1,12 @@
[Match]
Name=wlp0s20f0u2
[Network]
DHCP=ipv4
DNS=9.9.9.9
DNSOverTLS=opportunistic
DNSSEC=true
[DHCP]
RouteMetric=30
UseDNS=no

24
etc/systemd/resolved.conf Normal file
View file

@ -0,0 +1,24 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details
[Resolve]
#DNS=1.1.1.1 9.9.9.9
#FallbackDNS=1.1.1.1 9.9.9.9
#Domains=
#LLMNR=yes
#MulticastDNS=yes
#DNSSEC=no
#DNSOverTLS=no
Cache=yes
#DNSStubListener=udp

View file

@ -0,0 +1,24 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details
[Resolve]
#DNS=
#FallbackDNS=1.1.1.1 9.9.9.10 8.8.8.8 2606:4700:4700::1111 2620:fe::10 2001:4860:4860::8888
#Domains=
#LLMNR=yes
#MulticastDNS=yes
#DNSSEC=allow-downgrade
#DNSOverTLS=no
#Cache=yes
#DNSStubListener=yes
#ReadEtcHosts=yes

25
etc/systemd/sleep.conf Normal file
View file

@ -0,0 +1,25 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See systemd-sleep.conf(5) for details
[Sleep]
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
#SuspendState=mem standby freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
HibernateDelaySec=60min

57
etc/systemd/swap.conf Normal file
View file

@ -0,0 +1,57 @@
################################################################################
# Defaults are optimized for general usage
################################################################################
################################################################################
# You can override any settings by files in:
# /etc/systemd/swap.conf.d/*.conf
################################################################################
################################################################################
# Zswap
#
# Kernel >= 3.11
# Zswap create compress cache between swap and memory for reduce IO
# https://www.kernel.org/doc/Documentation/vm/zswap.txt
zswap_enabled=1
zswap_compressor=lz4 # lzo lz4
zswap_max_pool_percent=25 # 1-99
zswap_zpool=zbud # zbud z3fold
################################################################################
# ZRam
#
# Kernel >= 3.15
# Zram compression streams count for additional information see:
# https://www.kernel.org/doc/Documentation/blockdev/zram.txt
zram_enabled=0
zram_size=$(($RAM_SIZE/4)) # This is 1/4 of ram size by default.
zram_streams=$NCPU
zram_alg=lz4 # lzo lz4 deflate lz4hc 842 - for Linux 4.8.4
zram_prio=32767 # 1 - 32767
################################################################################
# Swap File Chunked
# Allocate swap files dynamically
# For btrfs fallback to swapfile + loop will be used
# ex. Min swap size 512M, Max 8*512M
swapfc_enabled=0
swapfc_force_use_loop=0 # Force usage of swapfile + loop
swapfc_frequency=1s # How often check free swap space
swapfc_chunk_size=512M # Allocate size of swap chunk
swapfc_max_count=8 # 0 - unlimited, note: 32 is a kernel maximum
swapfc_free_swap_perc=15 # Add new chunk if free < 15%
# Remove chunk if free > 15+40% & chunk count > 2
swapfc_path=/var/lib/systemd-swap/swapfc/
# Only for swapfile + loop
swapfc_nocow=1 # Disable CoW on swapfile
swapfc_directio=1 # Use directio for loop dev
swapfc_force_preallocated=0 # Will preallocate created files
################################################################################
# Swap devices
# Find and auto swapon all available swap devices
swapd_auto_swapon=1
swapd_prio=1024

64
etc/systemd/system.conf Normal file
View file

@ -0,0 +1,64 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See systemd-system.conf(5) for details.
[Manager]
#LogLevel=info
#LogTarget=journal-or-kmsg
#LogColor=yes
#LogLocation=no
#DumpCore=yes
#ShowStatus=yes
#CrashChangeVT=no
#CrashShell=no
#CrashReboot=no
#CtrlAltDelBurstAction=reboot-force
#CPUAffinity=1 2
#RuntimeWatchdogSec=0
#ShutdownWatchdogSec=10min
#WatchdogDevice=
#CapabilityBoundingSet=
#NoNewPrivileges=no
#SystemCallArchitectures=
#TimerSlackNSec=
#DefaultTimerAccuracySec=1min
#DefaultStandardOutput=journal
#DefaultStandardError=inherit
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s
#DefaultRestartSec=100ms
#DefaultStartLimitIntervalSec=10s
#DefaultStartLimitBurst=5
#DefaultEnvironment=
#DefaultCPUAccounting=no
#DefaultIOAccounting=no
#DefaultIPAccounting=no
#DefaultBlockIOAccounting=no
#DefaultMemoryAccounting=yes
#DefaultTasksAccounting=yes
#DefaultTasksMax=15%
#DefaultLimitCPU=
#DefaultLimitFSIZE=
#DefaultLimitDATA=
#DefaultLimitSTACK=
#DefaultLimitCORE=
#DefaultLimitRSS=
#DefaultLimitNOFILE=1024:524288
#DefaultLimitAS=
#DefaultLimitNPROC=
#DefaultLimitMEMLOCK=
#DefaultLimitLOCKS=
#DefaultLimitSIGPENDING=
#DefaultLimitMSGQUEUE=
#DefaultLimitNICE=
#DefaultLimitRTPRIO=
#DefaultLimitRTTIME=

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/bluetooth.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/bluetooth.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/systemd-networkd.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/systemd-resolved.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/systemd-timesyncd.service

View file

@ -0,0 +1,10 @@
[Unit]
Description=Disable Turbo Boost on Intel CPU
[Service]
ExecStart=/bin/sh -c "/usr/bin/echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo"
ExecStop=/bin/sh -c "/usr/bin/echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo"
RemainAfterExit=yes
[Install]
WantedBy=sysinit.target

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/getty@.service

View file

@ -0,0 +1 @@
/etc/systemd/system/threema-web.service

View file

@ -0,0 +1,14 @@
[Unit]
Description=Wireless service
Before=network.target
Wants=network.target
[Service]
Type=dbus
BusName=net.connman.iwd
ExecStart=/usr/lib/iwd/iwd
LimitNPROC=1
Restart=on-failure
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1 @@
/dev/null

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/apparmor.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/irqbalance.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/libvirtd.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/lm_sensors.service

View file

@ -0,0 +1 @@
/etc/systemd/system/randomvpn.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/remote-fs.target

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/systemd-networkd.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/systemd-resolved.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/ufw.service

View file

@ -0,0 +1,8 @@
.include /usr/lib/systemd/system/netctl@.service
[Unit]
Description=A wired connection with failover to wireless
BindsTo=sys-subsystem-net-devices-enp2s0.device
BindsTo=sys-subsystem-net-devices-wlp3s0.device
After=sys-subsystem-net-devices-enp2s0.device
After=sys-subsystem-net-devices-wlp3s0.device

View file

@ -0,0 +1,20 @@
[Unit]
Description=Random VPN client
After=syslog.target network-online.target
Wants=network-online.target
[Service]
Type=oneshot
WorkingDirectory=/etc/openvpn/client/
ProtectHome=true
ProtectSystem=strict
ExecStart=/usr/bin/randomvpn start
RemainAfterExit=yes
# CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE LimitNPROC=10
# DeviceAllow=/dev/null rw
# DeviceAllow=/dev/net/tun rw
ExecStop=/usr/bin/randomvpn stop
KillMode=process
[Install]
WantedBy=multi-user.target

View file

@ -1,13 +1,17 @@
[Unit]
Description=Restart networking services if internet connection not detected
After=network-online.target
After=network-online.target iwd.service
[Service]
Type=oneshot
ExecStart=/usr/bin/rnetworking
TimeoutStopSec=180
KillMode=process
KillSignal=SIGINT
Type=oneshot
ProtectHome=true
ProtectSystem=strict
ExecStart=/usr/bin/rnetworking
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE LimitNPROC=10
DeviceAllow=/dev/null rw
DeviceAllow=/dev/net/tun rw
StandardOutput=null
KillMode=process
[Install]
WantedBy=multi-user.target

View file

@ -1,8 +1,9 @@
[Unit]
Description=Comprobación automatica de servicios de red cada 5 minutos
Description=Check network services every 5 minutes
[Timer]
OnBootSec=2min
OnUnitActiveSec=10min
OnBootSec=1min
OnUnitActiveSec=5min
Unit=rnetworking.service
[Install]

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/systemd-networkd.socket

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/virtlockd.socket

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/virtlogd.socket

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/enable-processor-performance.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/systemd-timesyncd.service

View file

@ -0,0 +1 @@
/dev/null

View file

@ -0,0 +1 @@
/dev/null

View file

@ -0,0 +1 @@
/etc/systemd/system/rnetworking.timer

View file

@ -0,0 +1,20 @@
# tlp - systemd startup/shutdown service
#
# Copyright (c) 2018 Thomas Koch <linrunner at gmx.net>
# This software is licensed under the GPL v2 or later.
[Unit]
Description=TLP system startup/shutdown
#Wants=bluetooth.service NetworkManager.service
After=multi-user.target
Before=shutdown.target
Documentation=http://linrunner.de/tlp
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/tlp init start
ExecStop=/usr/bin/tlp init stop
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,13 @@
[Unit]
Description=Start rules for transparent tor proxy
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/tor-router
TimeoutStopSec=180
KillMode=process
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,19 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See timesyncd.conf(5) for details.
[Time]
#NTP=
#FallbackNTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048

44
etc/systemd/user.conf Normal file
View file

@ -0,0 +1,44 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# You can override the directives in this file by creating files in
# /etc/systemd/user.conf.d/*.conf.
#
# See systemd-user.conf(5) for details
[Manager]
#LogLevel=info
#LogTarget=console
#LogColor=yes
#LogLocation=no
#SystemCallArchitectures=
#TimerSlackNSec=
#DefaultTimerAccuracySec=1min
#DefaultStandardOutput=inherit
#DefaultStandardError=inherit
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s
#DefaultRestartSec=100ms
#DefaultStartLimitIntervalSec=10s
#DefaultStartLimitBurst=5
#DefaultEnvironment=
#DefaultLimitCPU=
#DefaultLimitFSIZE=
#DefaultLimitDATA=
#DefaultLimitSTACK=
#DefaultLimitCORE=
#DefaultLimitRSS=
#DefaultLimitNOFILE=
#DefaultLimitAS=
#DefaultLimitNPROC=
#DefaultLimitMEMLOCK=
#DefaultLimitLOCKS=
#DefaultLimitSIGPENDING=
#DefaultLimitMSGQUEUE=
#DefaultLimitNICE=
#DefaultLimitRTPRIO=
#DefaultLimitRTTIME=

View file

@ -0,0 +1 @@
/usr/lib/systemd/user/dirmngr.socket

View file

@ -0,0 +1 @@
/usr/lib/systemd/user/gpg-agent-browser.socket

View file

@ -0,0 +1 @@
/usr/lib/systemd/user/gpg-agent-extra.socket

View file

@ -0,0 +1 @@
/usr/lib/systemd/user/gpg-agent-ssh.socket

View file

@ -0,0 +1 @@
/usr/lib/systemd/user/gpg-agent.socket

View file

@ -0,0 +1 @@
/usr/lib/systemd/user/p11-kit-server.socket

View file

@ -0,0 +1 @@
/usr/lib/systemd/user/pulseaudio.socket