Add closed source vscode.

This commit is contained in:
Tom Alexander 2024-01-18 22:12:08 -05:00
parent e3e78b3eb5
commit 4d620a33b7
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
8 changed files with 38 additions and 4 deletions

View File

@ -36,4 +36,3 @@ cores: 16
sway_conf_files:
- rofimoji
docker_storage_driver: overlay2 # alternatively zfs
docker_zfs_dataset: zroot/linux/archmain/docker

View File

@ -33,4 +33,4 @@ cores: 16
sway_conf_files:
- rofimoji
docker_storage_driver: overlay2 # alternatively zfs
docker_zfs_dataset: zroot/linux/archwork/docker
closed_source_vscode: true

View File

@ -94,6 +94,14 @@
- src: makepkg.conf # TODO: Is this needed or can I use the default from devtools?
dest: /etc/aurutils/
- name: chown the custom package db
file:
path: "{{ item }}"
owner: "{{ build_user.name }}"
recurse: true
loop:
- /var/cache/pacman/custom/
- name: Create custom repo db
command: repo-add --sign /var/cache/pacman/custom/custom.db.tar
become: true

View File

@ -7,7 +7,6 @@
loop:
- kubeswitch
- flux-scm
- kubectl-minio
- name: Update cache
when: buildaur.changed
@ -23,5 +22,4 @@
- stern
- kubeswitch
- flux-scm
- kubectl-minio
state: present

View File

@ -0,0 +1,2 @@
[options]
IgnorePkg = linux linux-headers

View File

@ -52,6 +52,7 @@
group: root
loop:
- freeze_firefox.conf
- freeze_kernel.conf
- name: Install packages
package:

View File

@ -0,0 +1 @@
closed_source_vscode: false

View File

@ -1,4 +1,29 @@
- name: Build aur packages
when: closed_source_vscode
register: buildaur
become_user: "{{ build_user.name }}"
command: "aurutils-sync --no-view {{ item }}"
args:
creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
loop:
- visual-studio-code-bin
- name: Update cache
when: closed_source_vscode and buildaur.changed
pacman:
name: []
state: present
update_cache: true
- name: Install packages
when: closed_source_vscode
package:
name:
- visual-studio-code-bin
state: present
- name: Install packages
when: not closed_source_vscode
package:
name:
- code