From 916b0d41eb20d59595080d3b97e7ffc7646b1fe1 Mon Sep 17 00:00:00 2001 From: exu Date: Wed, 9 Oct 2024 21:40:52 +0200 Subject: [PATCH] Unify everything into one config playbook. Handle some more stuff --- arch-config/scripts/arch-config.sh | 5 - roles/config/tasks/copy_new.yml | 66 ------ roles/config/tasks/main.yml | 147 ++++++++++++- roles/config/tasks/preparation.yml | 26 --- roles/packages/tasks/main.yml | 333 +++++++++++++++-------------- 5 files changed, 308 insertions(+), 269 deletions(-) delete mode 100644 roles/config/tasks/copy_new.yml delete mode 100644 roles/config/tasks/preparation.yml diff --git a/arch-config/scripts/arch-config.sh b/arch-config/scripts/arch-config.sh index 9083000f..e8893926 100755 --- a/arch-config/scripts/arch-config.sh +++ b/arch-config/scripts/arch-config.sh @@ -197,7 +197,6 @@ sudo cp -r "$tempdir/arch-config/etc" / # Copy pacman config depending on system architecture # This is required due to differences in available repos between Arch on x86_64 and ALARM for aarch64 -# TODO if [ "$(uname --machine)" == "x86_64" ]; then sudo cp "/etc/pacman-x86_64.conf" "/etc/pacman.conf" fi @@ -231,7 +230,6 @@ EOF systemctl --user daemon-reload # set systemd services for vmware (only if installed) -# TODO if [[ $(pacman -Q | grep vmware-workstation) ]]; then sudo systemctl enable --now vmware-networks.service || echo "Service failed, continuing" sudo systemctl enable --now vmware-usbarbitrator.service || echo "Service failed, continuing" @@ -247,7 +245,6 @@ fi sudo systemctl enable fstrim.timer # enable btrfs maintenance timers -# TODO if [[ $(pacman -Q | grep btrfsmaintenance) ]]; then sudo systemctl restart btrfsmaintenance-refresh.service sudo systemctl enable btrfs-balance.timer @@ -261,7 +258,6 @@ sudo timedatectl set-ntp true systemctl --user enable --now ssh-agent # enable reflector timer -# TODO if [[ $(pacman -Q | grep reflector) ]]; then sudo systemctl enable reflector.timer fi @@ -277,7 +273,6 @@ cat <