Compare commits
5 Commits
a11376fe96
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
fd6e7d7a86
|
|||
|
b23536ecc7
|
|||
|
14e9c8d51c
|
|||
|
c1c98fa007
|
|||
|
9c6e6fdf47
|
@@ -41,15 +41,6 @@ Run the `dotf update` command, although the setup script did most of the work so
|
||||
dotf update
|
||||
```
|
||||
|
||||
### 5. Decrypt secrets
|
||||
|
||||
Either using 1Password or by manualling providing the decryption key you should decrypt the secrets.
|
||||
Various configurations depend on the secrets to be decrypted such as the SSH keys, yubikey pam configuration and more.
|
||||
|
||||
```bash
|
||||
dotf secrets decrypt
|
||||
```
|
||||
|
||||
### 6. Profit
|
||||
|
||||
You should now have a fully setup system with all the configurations applied.
|
||||
|
||||
@@ -41,12 +41,13 @@
|
||||
# Multimedia
|
||||
- com.plexamp.Plexamp
|
||||
- tv.plex.PlexDesktop
|
||||
- com.spotify.Client
|
||||
|
||||
# Messaging
|
||||
- com.rtosta.zapzap
|
||||
- org.telegram.desktop
|
||||
- org.signal.Signal
|
||||
- com.spotify.Client
|
||||
- com.discordapp.Discord
|
||||
|
||||
# 3D Printing
|
||||
- com.bambulab.BambuStudio
|
||||
@@ -74,6 +75,7 @@
|
||||
- io.github.bytezz.IPLookup
|
||||
- org.gaphor.Gaphor
|
||||
- io.dbeaver.DBeaverCommunity
|
||||
- com.jetpackduba.Gitnuro
|
||||
|
||||
- name: Define system desired Flatpak remotes
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
175
ansible/tasks/workstations/vicinae.yml
Normal file
175
ansible/tasks/workstations/vicinae.yml
Normal file
@@ -0,0 +1,175 @@
|
||||
---
|
||||
- name: Install Vicinae
|
||||
block:
|
||||
- name: Set Vicinae version
|
||||
ansible.builtin.set_fact:
|
||||
vicinae_version: "v0.15.6"
|
||||
vicinae_appimage_commit: "13865b4c5"
|
||||
|
||||
- name: Set architecture-specific variables
|
||||
ansible.builtin.set_fact:
|
||||
vicinae_arch: "{{ 'x86_64' if ansible_architecture == 'x86_64' else ansible_architecture }}"
|
||||
|
||||
- name: Ensure /opt/vicinae directory exists
|
||||
ansible.builtin.file:
|
||||
path: "/opt/vicinae"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: Download Vicinae AppImage
|
||||
ansible.builtin.get_url:
|
||||
url: "https://github.com/vicinaehq/vicinae/releases/download/{{ vicinae_version }}/Vicinae-{{ vicinae_appimage_commit }}-{{ vicinae_arch }}.AppImage"
|
||||
dest: "/opt/vicinae/vicinae.AppImage"
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: Remove old Vicinae binary if exists
|
||||
ansible.builtin.file:
|
||||
path: "/usr/local/bin/vicinae"
|
||||
state: absent
|
||||
become: true
|
||||
|
||||
- name: Create symlink to Vicinae AppImage
|
||||
ansible.builtin.file:
|
||||
src: "/opt/vicinae/vicinae.AppImage"
|
||||
dest: "/usr/local/bin/vicinae"
|
||||
state: link
|
||||
become: true
|
||||
|
||||
- name: Create temporary directory for Vicinae assets download
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
suffix: vicinae
|
||||
register: vicinae_temp_dir
|
||||
|
||||
- name: Download Vicinae tarball for assets
|
||||
ansible.builtin.get_url:
|
||||
url: "https://github.com/vicinaehq/vicinae/releases/download/{{ vicinae_version }}/vicinae-linux-{{ vicinae_arch }}-{{ vicinae_version }}.tar.gz"
|
||||
dest: "{{ vicinae_temp_dir.path }}/vicinae.tar.gz"
|
||||
mode: "0644"
|
||||
|
||||
- name: Extract Vicinae tarball
|
||||
ansible.builtin.unarchive:
|
||||
src: "{{ vicinae_temp_dir.path }}/vicinae.tar.gz"
|
||||
dest: "{{ vicinae_temp_dir.path }}"
|
||||
remote_src: true
|
||||
|
||||
- name: Ensure systemd user directory exists
|
||||
ansible.builtin.file:
|
||||
path: "/usr/lib/systemd/user"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: Copy systemd user service
|
||||
ansible.builtin.copy:
|
||||
src: "{{ vicinae_temp_dir.path }}/lib/systemd/user/vicinae.service"
|
||||
dest: "/usr/lib/systemd/user/vicinae.service"
|
||||
mode: "0644"
|
||||
remote_src: true
|
||||
become: true
|
||||
|
||||
- name: Update systemd service to use AppImage
|
||||
ansible.builtin.replace:
|
||||
path: "/usr/lib/systemd/user/vicinae.service"
|
||||
regexp: "ExecStart=.*"
|
||||
replace: "ExecStart=/usr/local/bin/vicinae"
|
||||
become: true
|
||||
|
||||
- name: Ensure applications directory exists
|
||||
ansible.builtin.file:
|
||||
path: "/usr/share/applications"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: Copy desktop files
|
||||
ansible.builtin.copy:
|
||||
src: "{{ vicinae_temp_dir.path }}/share/applications/{{ item }}"
|
||||
dest: "/usr/share/applications/{{ item }}"
|
||||
mode: "0644"
|
||||
remote_src: true
|
||||
become: true
|
||||
loop:
|
||||
- vicinae.desktop
|
||||
- vicinae-url-handler.desktop
|
||||
|
||||
- name: Update desktop files to use AppImage
|
||||
ansible.builtin.replace:
|
||||
path: "/usr/share/applications/{{ item }}"
|
||||
regexp: "Exec=.*vicinae"
|
||||
replace: "Exec=/usr/local/bin/vicinae"
|
||||
become: true
|
||||
loop:
|
||||
- vicinae.desktop
|
||||
- vicinae-url-handler.desktop
|
||||
|
||||
- name: Ensure Vicinae share directory exists
|
||||
ansible.builtin.file:
|
||||
path: "/usr/share/vicinae"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: Copy Vicinae themes directory
|
||||
ansible.builtin.copy:
|
||||
src: "{{ vicinae_temp_dir.path }}/share/vicinae/themes/"
|
||||
dest: "/usr/share/vicinae/themes/"
|
||||
mode: "0644"
|
||||
remote_src: true
|
||||
become: true
|
||||
|
||||
- name: Ensure hicolor icons directory exists
|
||||
ansible.builtin.file:
|
||||
path: "/usr/share/icons/hicolor/512x512/apps"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: Copy Vicinae icon
|
||||
ansible.builtin.copy:
|
||||
src: "{{ vicinae_temp_dir.path }}/share/icons/hicolor/512x512/apps/vicinae.png"
|
||||
dest: "/usr/share/icons/hicolor/512x512/apps/vicinae.png"
|
||||
mode: "0644"
|
||||
remote_src: true
|
||||
become: true
|
||||
|
||||
- name: Update desktop database
|
||||
ansible.builtin.command:
|
||||
cmd: update-desktop-database /usr/share/applications
|
||||
become: true
|
||||
changed_when: false
|
||||
|
||||
- name: Update icon cache
|
||||
ansible.builtin.command:
|
||||
cmd: gtk-update-icon-cache /usr/share/icons/hicolor
|
||||
become: true
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
- name: Clean up temporary directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ vicinae_temp_dir.path }}"
|
||||
state: absent
|
||||
|
||||
- name: Verify Vicinae installation
|
||||
ansible.builtin.command:
|
||||
cmd: /usr/local/bin/vicinae --version
|
||||
register: vicinae_version_check
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
- name: Display installation result
|
||||
ansible.builtin.debug:
|
||||
msg: |
|
||||
{% if vicinae_version_check.rc == 0 %}
|
||||
✓ Vicinae AppImage installed successfully with all themes and assets!
|
||||
Version: {{ vicinae_version_check.stdout }}
|
||||
{% else %}
|
||||
✗ Vicinae installation completed but version check failed.
|
||||
This may be normal if --version flag is not supported.
|
||||
Try running: vicinae
|
||||
{% endif %}
|
||||
tags:
|
||||
- vicinae
|
||||
@@ -42,6 +42,10 @@
|
||||
ansible.builtin.import_tasks: tasks/workstations/autostart.yml
|
||||
when: "'microsoft-standard-WSL2' not in ansible_kernel"
|
||||
|
||||
- name: Include Vicinae tasks
|
||||
ansible.builtin.import_tasks: tasks/workstations/vicinae.yml
|
||||
when: "'microsoft-standard-WSL2' not in ansible_kernel"
|
||||
|
||||
- name: Ensure workstation common packages are installed
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
|
||||
12
flake.lock
generated
12
flake.lock
generated
@@ -41,11 +41,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1761173472,
|
||||
"narHash": "sha256-m9W0dYXflzeGgKNravKJvTMR4Qqa2MVD11AwlGMufeE=",
|
||||
"lastModified": 1761597516,
|
||||
"narHash": "sha256-wxX7u6D2rpkJLWkZ2E932SIvDJW8+ON/0Yy8+a5vsDU=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c8aa8cc00a5cb57fada0851a038d35c08a36a2bb",
|
||||
"rev": "daf6dc47aa4b44791372d6139ab7b25269184d55",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -77,11 +77,11 @@
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1760894497,
|
||||
"narHash": "sha256-u2unItzVvUe3Y2opdJrISGtHSmQLVnDOIfhWvSBrw74=",
|
||||
"lastModified": 1761503988,
|
||||
"narHash": "sha256-MlMZXCTtPeXq/cDtJcL2XM8wCN33XOT9V2dB3PLV6f0=",
|
||||
"owner": "brizzbuzz",
|
||||
"repo": "opnix",
|
||||
"rev": "92974503378ca6ec6206b74cd3a78377a5796cbb",
|
||||
"rev": "48fdb078b5a1cd0b20b501fccf6be2d1279d6fe6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
Reference in New Issue
Block a user