Move some systemd services to config

Enable timer for reflector
    Move vnstat service to config
This commit is contained in:
RealStickman 2023-05-22 19:51:45 +02:00
parent 7f2978ef25
commit 9bfd0f163c
2 changed files with 9 additions and 7 deletions

View File

@ -331,6 +331,9 @@ cat <<EOF
########################################
EOF
# reload systemd user scripts
systemctl --user daemon-reload
# set systemd services for vmware (only if installed)
if [[ $(pacman -Q | grep vmware-workstation) ]]; then
sudo systemctl enable --now vmware-networks.service || echo "Service failed, continuing"
@ -365,6 +368,12 @@ sudo timedatectl set-ntp true
# enable ssh-agent
systemctl --user enable --now ssh-agent
# enable reflector timer
sudo systemctl enable reflector.timer
# enable vnstat
sudo systemctl enable vnstat
echo
cat <<EOF
########################################
@ -456,9 +465,6 @@ fi
# dunst
pkill dunst && nohup dunst &
# reload systemd user scripts
systemctl --user daemon-reload
# reload .Xresources
if [[ -f "$HOME/.Xresources" ]]; then
xrdb ~/.Xresources

View File

@ -359,10 +359,6 @@ fi
#change shell
chsh -s /usr/bin/fish "$USER"
#enable vnstat
sudo systemctl enable vnstat
sudo systemctl start vnstat
# setup autotrash
autotrash -td 5 --install
systemctl --user enable autotrash.timer