Proton - working build

This commit is contained in:
unman 2024-02-24 14:34:27 +00:00
parent 906774daee
commit 4ad6704426
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
5 changed files with 35 additions and 14 deletions

View File

@ -11,5 +11,5 @@ proton_menu:
qvm.features: qvm.features:
- name: template-proton - name: template-proton
- set: - set:
- menu-items: "protonvpn.desktop firefox-esr.desktop debian-xterm.desktop" - menu-items: "protonvpn-app.desktop firefox-esr.desktop debian-xterm.desktop"
- default-menu-items: "protonvpn.desktop firefox-esr.desktop debian-xterm.desktop" - default-menu-items: "protonvpn-app.desktop firefox-esr.desktop debian-xterm.desktop"

View File

@ -25,4 +25,4 @@ qvm-features-id:
- enable: - enable:
- service.network-manager - service.network-manager
- set: - set:
- menu-items: "protonvpn.desktop firefox-esr.desktop debian-xterm.desktop" - menu-items: "protonvpn-app.desktop firefox-esr.desktop debian-xterm.desktop"

View File

@ -1,13 +1,5 @@
include: include:
- proton.clone - proton.install_repo
/tmp/protonvpn-stable-release_1.0.3-2_all.deb:
file.managed:
- source:
- salt://proton/protonvpn-stable-release_1.0.3-2_all.deb
'dpkg -i /tmp/protonvpn-stable-release_1.0.3-2_all.deb':
cmd.run
{% if salt['pillar.get']('update_proxy:caching') %} {% if salt['pillar.get']('update_proxy:caching') %}
{% set proxy = 'cacher' %} {% set proxy = 'cacher' %}
@ -41,13 +33,24 @@ include:
{% endif %} {% endif %}
{% endif %} {% endif %}
set_locale:
cmd.run:
- name: |
sed -i s/# en_US.UTF-8/en_US.UTF-8/ /etc/locale.gen
locale-gen
proton_install: proton_install:
pkg.installed: pkg.installed:
- refresh: True
- skip_suggestions: True - skip_suggestions: True
- install_recommends: False
- pkgs: - pkgs:
- qubes-core-agent-network-manager - qubes-core-agent-network-manager
- qubes-core-agent-networking - qubes-core-agent-networking
- qubes-core-agent-passwordless-root
- firefox-esr - firefox-esr
- network-manager - network-manager
- protonvpn-gui - netcat-openbsd
- protonvpn
- openssh-client
- thunderbird-qubes
- wget

14
proton/install_repo.sls Normal file
View File

@ -0,0 +1,14 @@
{% if salt['pillar.get']('update_proxy:caching') %}
/etc/apt/sources.list.d/protonvpn-stable.list:
file.managed:
- source:
- salt://proton/protonvpn-stable.list
{% endif %}
/tmp/protonvpn-stable-release_1.0.3-2_all.deb:
file.managed:
- source:
- salt://proton/protonvpn-stable-release_1.0.3-2_all.deb
'dpkg -i --force-confold /tmp/protonvpn-stable-release_1.0.3-2_all.deb ':
cmd.run

View File

@ -0,0 +1,4 @@
#
# ProtonVPN stable release
#
deb [arch="all", signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] http://HTTPS///repo.protonvpn.com/debian stable main