* add automatic flatpak updates to arch install

* rename SCRIPTS/ to scripts/

* add directory files/ for misc files to add to installer, currently
  holds flatpak auto update systemd timers
master
Alex 2022-12-22 20:29:23 -06:00
parent dc3defb34b
commit 2669e1630d
11 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,11 @@
[Unit]
Description=Update Flatpak
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/flatpak update --noninteractive --assumeyes
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=Update Flatpak
[Timer]
OnBootSec=2m
OnActiveSec=2m
OnUnitInactiveSec=24h
OnUnitActiveSec=24h
AccuracySec=1h
RandomizedDelaySec=10m
[Install]
WantedBy=timers.target

View File

@ -71,6 +71,12 @@ configuration() {
sudo ufw enable sudo ufw enable
#setup flatpak auto updates
sudo cp ./files/flatpak-update.service /etc/systemd/user/
sudo cp ./files/flatpak-update.timer /etc/systemd/user/
sudo systemctl daemon-reload
systemctl --user enable --now flatpak-update.timer
#zsh setup #zsh setup
chsh -s /bin/zsh "$USER" chsh -s /bin/zsh "$USER"
@ -88,6 +94,7 @@ configuration() {
sudo sh -c "echo '$USER hard memlock 2048' >> /etc/security/limits.conf" sudo sh -c "echo '$USER hard memlock 2048' >> /etc/security/limits.conf"
#fixes #fixes
#fixes java progams on tilining window managers
sudo sh -c 'echo "export _JAVA_AWT_WM_NONREPARENTING=1" >> /etc/profile.d/jre.sh' sudo sh -c 'echo "export _JAVA_AWT_WM_NONREPARENTING=1" >> /etc/profile.d/jre.sh'
#theming #theming
@ -132,7 +139,6 @@ read input
[ "$input" = "y" ] && wireless [ "$input" = "y" ] && wireless
echo "installing AUR packages..." echo "installing AUR packages..."
echo "$PWD"
sh ./SCRIPTS/aur-install.sh sh ./SCRIPTS/aur-install.sh
echo "Done installing AUR packages." echo "Done installing AUR packages."
echo "" echo ""