Configure fstrim

This commit is contained in:
2024-09-13 11:52:38 +02:00
parent f8780fa846
commit 04c2cafe0b
2 changed files with 4 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ source ./scripts/functions
### Global variables
_DIRNAME="$(pwd)"
_PACKAGES=(arc-gtk-theme chromium code curl discord dmenu dunst egl-wayland feh flameshot flatpak firefox htop hyprland i3lock i3-wm imagemagick kitty lxappearance mpv neofetch numlockx nwg-look otf-comicshanns-nerd papirus-icon-theme pavucontrol picom pipewire pipewire-jack pipewire-pulse rofi plocate polybar reflector remmina ttf-dejavu-nerd wget wireguard-tools xdg-desktop-portal xorg xorg-xinit)
_PACKAGES=(arc-gtk-theme chromium code curl discord dmenu dunst egl-wayland feh flameshot flatpak firefox fstrm htop hyprland i3lock i3-wm imagemagick kitty lxappearance mpv neofetch numlockx nwg-look otf-comicshanns-nerd papirus-icon-theme pavucontrol picom pipewire pipewire-jack pipewire-pulse rofi plocate polybar reflector remmina ttf-dejavu-nerd wget wireguard-tools xdg-desktop-portal xorg xorg-xinit)
### Configure pacman and install needeed packages
_info "Configuring and updateing packages"
@@ -40,6 +40,9 @@ done
_info "Linking config files"
_msg "modprobe links"
ln -sf "${_DIRNAME}/links/modprobe/blacklist.conf" /etc/modprobe.d/blacklist.conf
_msg "fstrim links"
'/etc/systemd/system/timers.target.wants/fstrim.timer''/usr/lib/systemd/system/fstrim.timer'.
ln -sf "/usr/lib/systemd/system/fstrim.timer" "/etc/systemd/system/timers.target.wants/fstrim.timer"
_msg "tty links"
mkdir -p /etc/systemd/system/getty@tty1.service.d
ln -sf "$_DIRNAME/links/tty/override.conf" /etc/systemd/system/getty@tty1.service.d/override.conf