From 5ff84a4c0d87e140d9d518cd446813870d21221f Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Tue, 23 Sep 2025 14:09:30 +0000 Subject: [PATCH] Remove GNOME extension management from workstation setup --- README.md | 11 ++- ansible/tasks/workstations/flatpaks.yml | 9 --- .../tasks/workstations/gnome-extensions.yml | 18 ----- .../manage_gnome_extension.yml | 73 ------------------- .../workstations/gnome-extensions/pano.yml | 8 -- .../gnome-extensions/quick-settings.yml | 8 -- .../gnome-extensions/tilingshell.yml | 8 -- ansible/tasks/workstations/workstation.yml | 4 - 8 files changed, 7 insertions(+), 132 deletions(-) delete mode 100644 ansible/tasks/workstations/gnome-extensions.yml delete mode 100644 ansible/tasks/workstations/gnome-extensions/manage_gnome_extension.yml delete mode 100644 ansible/tasks/workstations/gnome-extensions/pano.yml delete mode 100644 ansible/tasks/workstations/gnome-extensions/quick-settings.yml delete mode 100644 ansible/tasks/workstations/gnome-extensions/tilingshell.yml diff --git a/README.md b/README.md index 35d0098..47def82 100755 --- a/README.md +++ b/README.md @@ -1,16 +1,13 @@ # Setup This dotfiles is intended to be used with either Fedora 40>, Ubuntu 20.04> or Arch Linux. -Please install a clean version of either distro with GNOME and then follow the steps below. +Please install a clean version of either distro and then follow the steps below. ## Installation ### 0. Install distro Download the latest ISO from your desired distro and write it to a USB stick. -I'd recommend getting the GNOME version as it's easier to setup unless you're planning on setting up a server, in that case I recommend getting the server ISO for the specific distro. - -#### Note: If you intend on using a desktop environment you should select the GNOME version as this dotfiles repository expects the GNOME desktop environment for various configurations ### 1. Clone dotfiles to home directory @@ -71,6 +68,7 @@ If you add a new system you should add the relevant files to these paths. In case you reboot a server, it's likely that this runs JuiceFS. To be sure that every service is properly accessing JuiceFS mounted files you should probably restart the services once when the server comes online. + ```bash dotf service stop --all df # confirm JuiceFS is mounted @@ -81,16 +79,19 @@ dotf service start --all In case you need to adjust anything regarding the /mnt/object_storage JuiceFS. Ensure to shut down all services: + ```bash dotf service stop --all ``` Unmount the volume: + ```bash sudo systemctl stop juicefs ``` And optionally if you're going to do something with metadata you might need to stop redis too. + ```bash cd ~/services/juicefs-redis/ docker compose down --remove-orphans @@ -103,6 +104,7 @@ To add a new system you should follow these steps: 1. Add the relevant files shown in the section above. 2. Ensure you've either updated or added the `$HOME/.hostname` file with the hostname of the system. 3. Run `dotf update` to ensure the symlinks are properly updated/created. + --- ## Using 1Password SSH Agent with WSL2 (Windows 11) @@ -132,5 +134,6 @@ This setup allows you to use your 1Password-managed SSH keys inside WSL2. The WS - If your 1Password keys are listed, the setup is complete. #### References + - [Using 1Password's SSH Agent with WSL2](https://dev.to/d4vsanchez/use-1password-ssh-agent-in-wsl-2j6m) - [How to change the PATH environment variable in Windows](https://www.wikihow.com/Change-the-PATH-Environment-Variable-on-Windows) diff --git a/ansible/tasks/workstations/flatpaks.yml b/ansible/tasks/workstations/flatpaks.yml index b741bff..5b32951 100644 --- a/ansible/tasks/workstations/flatpaks.yml +++ b/ansible/tasks/workstations/flatpaks.yml @@ -31,11 +31,6 @@ - name: Define system desired Flatpaks ansible.builtin.set_fact: desired_system_flatpaks: - # GNOME Software - - "{{ 'org.gnome.Extensions' if (ansible_facts.env.XDG_CURRENT_DESKTOP is defined and 'GNOME' in ansible_facts.env.XDG_CURRENT_DESKTOP) else omit }}" - - "{{ 'org.gnome.Weather' if (ansible_facts.env.XDG_CURRENT_DESKTOP is defined and 'GNOME' in ansible_facts.env.XDG_CURRENT_DESKTOP) else omit }}" - - "{{ 'org.gnome.Sudoku' if (ansible_facts.env.XDG_CURRENT_DESKTOP is defined and 'GNOME' in ansible_facts.env.XDG_CURRENT_DESKTOP) else omit }}" - # Games - io.github.openhv.OpenHV - info.beyondallreason.bar @@ -53,10 +48,6 @@ - org.signal.Signal - com.spotify.Client - # Nextcloud Compatible Utilities - - io.github.mrvladus.List - - org.gnome.World.Iotas - # 3D Printing - com.bambulab.BambuStudio - io.mango3d.LycheeSlicer diff --git a/ansible/tasks/workstations/gnome-extensions.yml b/ansible/tasks/workstations/gnome-extensions.yml deleted file mode 100644 index 5053406..0000000 --- a/ansible/tasks/workstations/gnome-extensions.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: Install Pano - Clipboard Manager dependencies - ansible.builtin.apt: - name: - - gir1.2-gda-5.0 - - gir1.2-gsound-1.0 - state: present - update_cache: true - become: true - -- name: Install Pano - Clipboard Manager - ansible.builtin.import_tasks: tasks/workstations/gnome-extensions/pano.yml - -- name: Install Tiling Shell - Window Manager - ansible.builtin.import_tasks: tasks/workstations/gnome-extensions/tilingshell.yml - -- name: Install Quick Settings Tweaks - ansible.builtin.import_tasks: tasks/workstations/gnome-extensions/quick-settings.yml diff --git a/ansible/tasks/workstations/gnome-extensions/manage_gnome_extension.yml b/ansible/tasks/workstations/gnome-extensions/manage_gnome_extension.yml deleted file mode 100644 index e1929d8..0000000 --- a/ansible/tasks/workstations/gnome-extensions/manage_gnome_extension.yml +++ /dev/null @@ -1,73 +0,0 @@ ---- -- name: Manage GNOME extension - vars: - requested_git_tag: "{{ git_tag }}" - extension_name: "{{ ext_name }}" - extension_url: "{{ ext_url }}" - extension_path: "{{ ansible_user_dir }}/.local/share/gnome-shell/extensions/{{ ext_id }}" - version_file: "{{ extension_path }}/version.txt" - block: - - name: Check if extension is installed - ansible.builtin.stat: - path: "{{ extension_path }}" - register: ext_check - - - name: Read last installed version - ansible.builtin.slurp: - src: "{{ version_file }}" - register: installed_version - ignore_errors: true - when: ext_check.stat.exists - - - name: Determine if update is needed - ansible.builtin.set_fact: - update_needed: >- - {{ installed_version.content is not defined or - (installed_version.content | b64decode | trim != requested_git_tag) }} - - - name: Delete old extension if updating - ansible.builtin.file: - path: "{{ extension_path }}" - state: absent - when: update_needed - - - name: Create directory for extension - ansible.builtin.file: - path: "{{ extension_path }}" - state: directory - mode: "0755" - when: not ext_check.stat.exists or update_needed - - - name: Download extension - ansible.builtin.get_url: - url: "{{ extension_url | replace('%TAG%', requested_git_tag) }}" - dest: "{{ extension_path }}/release.zip" - mode: "0644" - when: update_needed or not ext_check.stat.exists - - - name: Extract extension - ansible.builtin.unarchive: - src: "{{ extension_path }}/release.zip" - dest: "{{ extension_path }}" - when: update_needed or not ext_check.stat.exists - - - name: Store installed version of the extension - ansible.builtin.copy: - content: "{{ requested_git_tag }}" - dest: "{{ version_file }}" - mode: "0644" - when: update_needed or not ext_check.stat.exists - - - name: Cleanup post installation - ansible.builtin.file: - path: "{{ extension_path }}/release.zip" - state: absent - when: not ext_check.stat.exists or update_needed - - - name: Notify user of required GNOME Shell reload - ansible.builtin.debug: - msg: > - Please reload GNOME Shell by pressing Alt + F2, typing 'r' and pressing Enter. - Then enable the {{ extension_name }} in GNOME Tweaks. - Or on Wayland, log out and back in. - when: not ext_check.stat.exists or update_needed diff --git a/ansible/tasks/workstations/gnome-extensions/pano.yml b/ansible/tasks/workstations/gnome-extensions/pano.yml deleted file mode 100644 index ecc8764..0000000 --- a/ansible/tasks/workstations/gnome-extensions/pano.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Manage Pano Clipboard Manager - ansible.builtin.include_tasks: tasks/workstations/gnome-extensions/manage_gnome_extension.yml - vars: - git_tag: "v23-alpha5" - ext_name: "Pano - Clipboard Manager" - ext_url: "https://github.com/oae/gnome-shell-pano/releases/download/%TAG%/pano@elhan.io.zip" - ext_id: "pano@elhan.io" diff --git a/ansible/tasks/workstations/gnome-extensions/quick-settings.yml b/ansible/tasks/workstations/gnome-extensions/quick-settings.yml deleted file mode 100644 index c0938e7..0000000 --- a/ansible/tasks/workstations/gnome-extensions/quick-settings.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Manage Quick Settings Tweaks - ansible.builtin.include_tasks: tasks/workstations/gnome-extensions/manage_gnome_extension.yml - vars: - git_tag: "2.1-stable" - ext_name: "Quick Settings Tweaks" - ext_url: "https://github.com/qwreey/quick-settings-tweaks/releases/download/2.1-stable/2.1-release.zip" - ext_id: "quick-settings-tweaks@qwreey" diff --git a/ansible/tasks/workstations/gnome-extensions/tilingshell.yml b/ansible/tasks/workstations/gnome-extensions/tilingshell.yml deleted file mode 100644 index 8d53a7e..0000000 --- a/ansible/tasks/workstations/gnome-extensions/tilingshell.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Manage Tiling Shell - Window Manager - ansible.builtin.include_tasks: tasks/workstations/gnome-extensions/manage_gnome_extension.yml - vars: - git_tag: "16.3" - ext_name: "Tiling Shell - Window Manager" - ext_url: "https://github.com/domferr/tilingshell/releases/download/%TAG%/tilingshell@ferrarodomenico.com.zip" - ext_id: "tilingshell@ferrarodomenico.com" diff --git a/ansible/tasks/workstations/workstation.yml b/ansible/tasks/workstations/workstation.yml index 0941e4e..5656170 100644 --- a/ansible/tasks/workstations/workstation.yml +++ b/ansible/tasks/workstations/workstation.yml @@ -8,10 +8,6 @@ ansible.builtin.import_tasks: tasks/workstations/cliphist.yml when: "'microsoft-standard-WSL2' not in ansible_kernel" - - name: Include GNOME Extensions tasks - ansible.builtin.import_tasks: tasks/workstations/gnome-extensions.yml - when: ansible_facts.env.XDG_CURRENT_DESKTOP is defined and 'GNOME' in ansible_facts.env.XDG_CURRENT_DESKTOP and 'microsoft-standard-WSL2' not in ansible_kernel - - name: Include Firefox APT installation tasks ansible.builtin.import_tasks: tasks/workstations/firefox-apt.yml when: ansible_pkg_mgr == 'apt' and ansible_facts.packages.snapd is defined and 'microsoft-standard-WSL2' not in ansible_kernel