From 1a235ee21aa3e270372bc4d21813413ad46b32bd Mon Sep 17 00:00:00 2001 From: Marat Date: Sat, 15 Feb 2025 23:51:20 +0600 Subject: [PATCH] up --- roles/dots/files/home/create_backup.sh | 1 + roles/packages/tasks/main.yml | 18 ++++----- save_new_config.sh | 53 +++++++++++++++----------- 3 files changed, 41 insertions(+), 31 deletions(-) diff --git a/roles/dots/files/home/create_backup.sh b/roles/dots/files/home/create_backup.sh index 8ce555d..0f82a07 100755 --- a/roles/dots/files/home/create_backup.sh +++ b/roles/dots/files/home/create_backup.sh @@ -14,6 +14,7 @@ then /home/fs/.mozilla/ \ /home/fs/.local/nvim \ /home/fs/.cache/nvim \ + /home/fs/vpn \ /home/fs/.local/DBeaverData | pigz > "/home/fs/backups/$backup_name" fi diff --git a/roles/packages/tasks/main.yml b/roles/packages/tasks/main.yml index cd6fe0d..17d9dc6 100644 --- a/roles/packages/tasks/main.yml +++ b/roles/packages/tasks/main.yml @@ -1,14 +1,14 @@ - # - name: install packages from main repository - # ansible.builtin.include_tasks: - # file: "apps.yml" + - name: install packages from main repository + ansible.builtin.include_tasks: + file: "apps.yml" - # - name: install aur packages - # ansible.builtin.include_tasks: - # file: "aur.yml" + - name: install aur packages + ansible.builtin.include_tasks: + file: "aur.yml" - # - name: include tasks install docker file - # ansible.builtin.include_tasks: - # file: "docker.yml" + - name: include tasks install docker file + ansible.builtin.include_tasks: + file: "docker.yml" - name: include tasks install xorg when: display_server == 'xorg' diff --git a/save_new_config.sh b/save_new_config.sh index e6c6188..41255ed 100755 --- a/save_new_config.sh +++ b/save_new_config.sh @@ -1,27 +1,36 @@ #!/bin/bash -rsync -av /home/fs/.config/nvim/ roles/dots/files/config/nvim --exclude packer -rsync -av /home/fs/.config/kitty/ roles/dots/files/config/kitty -rsync -av /home/fs/.config/nsxiv/ roles/dots/files/config/nsxiv -# emacs -cp /home/fs/.emacs.d/config.org roles/dots/files/home/.emacs.d/ -cp -r /home/fs/.emacs.d/lan roles/dots/files/home/.emacs.d/ -cp -r /home/fs/.emacs.d/lib roles/dots/files/home/.emacs.d/ +# . +cp /home/fs/.bashrc roles/dots/files/home/ +cp /home/fs/.gitconfig roles/dots/files/home/ +cp /home/fs/.tmux.conf roles/dots/files/home/ +cp /home/fs/.xinitrc roles/dots/files/home/ +rsync -av /home/fs/.moc roles/dots/files/home/ +cp /home/fs/scale_vars roles/dots/files/home/ +cp /home/fs/create_backup.sh roles/dots/files/home/ +cp /home/fs/create_hot_backup.sh roles/dots/files/home/ + +cp /home/fs/st.sh roles/dots/files/home/ +cp /home/fs/sw.sh roles/dots/files/home/ + +# ./bin +rsync -av /home/fs/bin roles/dots/files/home/ + +# ./.ssh +cp /home/fs/.ssh/config roles/dots/files/home/.ssh/ + +# ./.emacs.d +cp /home/fs/.emacs.d/config.org roles/dots/files/home/.emacs.d/ +cp -r /home/fs/.emacs.d/lan roles/dots/files/home/.emacs.d/ +cp -r /home/fs/.emacs.d/lib roles/dots/files/home/.emacs.d/ + +# ./.config # wayland wm -rsync -av /home/fs/.config/sway roles/window_managers/files/ -rsync -av /home/fs/.config/waybar roles/window_managers/files/ -rsync -av /home/fs/.config/wofi roles/window_managers/files/ +rsync -av /home/fs/.config/sway roles/window_managers/files/ +rsync -av /home/fs/.config/waybar roles/window_managers/files/ +rsync -av /home/fs/.config/wofi roles/window_managers/files/ -cp /home/fs/.bashrc roles/dots/files/home/ -cp /home/fs/.gitconfig roles/dots/files/home/ -cp /home/fs/.tmux.conf roles/dots/files/home/ -cp /home/fs/.xinitrc roles/dots/files/home/ -cp /home/fs/scale_vars roles/dots/files/home/ - -# ssh -cp /home/fs/.ssh/config roles/dots/files/home/.ssh/ - -rsync -av /home/fs/.moc roles/dots/files/home/ -rsync -av /home/fs/bin roles/dots/files/home/ -rsync -av /home/fs/bin roles/dots/files/home/ +rsync -av /home/fs/.config/nvim/ roles/dots/files/config/nvim --exclude packer +rsync -av /home/fs/.config/kitty/ roles/dots/files/config/kitty +rsync -av /home/fs/.config/nsxiv/ roles/dots/files/config/nsxiv