fix: add Mullvad Browser

This commit is contained in:
Ben Grande 2024-06-28 11:28:04 +02:00
parent 59fc487682
commit 72068e8e9d
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56
14 changed files with 208 additions and 7 deletions

View File

@ -69,10 +69,18 @@ Files: salt/ansible/files/repo/*
Copyright: 2014 Ansible, Inc. <https://ansible.com>
License: CC0-1.0
Files: salt/browser/files/repo/*
Files: salt/browser/files/repo/chrome*
Copyright: 2007 Google Inc. <linux-packages-keymaster@google.com>
License: CC0-1.0
Files: salt/browser/files/repo/mozilla*
Copyright: 2021 Google Inc. <artifact-registry-repository-signer@google.com>
License: CC0-1.0
Files: salt/browser/files/repo/mullvad*
Copyright: 2016 Mullvad VPN AB <admin@mullvad.net>
License: CC0-1.0
Files: salt/docker/files/repo/*
Copyright: 2017 Docker Inc. <docker@docker.com>
License: CC0-1.0

View File

@ -17,7 +17,7 @@ disposable qube. If you want to save your session, you can also clone the
template and create app qubes.
Default browser to install is Chromium, but you can choose to install Chrome,
Firefox-ESR, W3M or Lynx.
Firefox, Firefox-ESR, Mullvad-Browser, W3M or Lynx.
## Installation
@ -64,6 +64,12 @@ sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-fire
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-firefox-esr
```
- Mullvad-Browser:
```sh
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-mullvad-browser
```
- W3M:
```sh
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-w3m

View File

@ -20,8 +20,8 @@ prefs:
- maxmem: 2000
features:
- set:
- default-menu-items: "org.mozilla.firefox.desktop firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-open-file-manager.desktop qubes-start.desktop" # noqa: 204
- menu-items: "org.mozilla.firefox.desktop firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-open-file-manager.desktop qubes-start.desktop" # noqa: 204
- default-menu-items: "qusal-mullvad-browser.desktop org.mozilla.firefox.desktop firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-open-file-manager.desktop qubes-start.desktop" # noqa: 204
- menu-items: "qusal-mullvad-browser.desktop org.mozilla.firefox.desktop firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-open-file-manager.desktop qubes-start.desktop" # noqa: 204
- disable:
- service.tracker
- service.evolution-data-server
@ -52,6 +52,6 @@ features:
- service.tracker
- service.evolution-data-server
- set:
- menu-items: "org.mozilla.firefox.desktop firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-open-file-manager.desktop qubes-start.desktop" # noqa: 204
- menu-items: "qusal-mullvad-browser.desktop org.mozilla.firefox.desktop firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-open-file-manager.desktop qubes-start.desktop" # noqa: 204
{%- endload %}
{{ load(defaults) }}

View File

@ -0,0 +1,84 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFgRmCoBEAChee2rs/braqjqim1D+uvTBpPZzkpccJVb2SqhErQKs54iJVyo
H5pNrGR4VIzFRUnY7fbATo2Ej+0MlglXahl4ok93XmeDz04P5rH2NKnLvWYdaK1C
9Lvpq22t1nytJuhc124UBahVVEYjc7l2+JGdTh7WvLj8FXqfnnmI1upVU48S70RL
oM3tSDZqQaO3OGCc0znMNBGI/uKNNwc6Omm6KPvczOhci7bnKt0b0R6TrXufvgOG
y1DM9sntIbXtpIjOuZdTWyrGTm/AvT6zddPFjN8SN6ZIfoRmJT6ROB6ZTtiz/d20
VJ87QPEfVRKrMImZxtkJtSliojZB/I3/bkP7A4pvgJ6cJ+ErwW4cfqc3DrWaZY+D
4AZnk71FA6C5rQdkFbfkgyUMY1WeKX+8N/R+e5oLGmoVI/fdHu1z0JkJJvEraAO9
+qX2mOcW5h/NRxv0Xw57fjMhnMha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S4v7lns5g9oqCGpRbGRllrBV1M/o7bs7+1NyvPTJm9UAmt5U
iApao4vt4YOG5w0vYd0t50pDS/j3TGjbakgxZpNUMpAgrhnelClKDsXbCVGCyhlJ
ZOw9Q9t4vIAhFFSpxEDl1NREOUInoK3R4yo4Ep4sq6cbfZvoyAYZf1zpQHQX9OBN
DKp1jwGLA3+0Jna2/1QUYFLjFiz9bdL+1nT9k/RStFBauRh529r+M1WlkwqNIL+L
bRGm0rXbWu9eiLhq2ldnfIADOtccUll10RznrjumqgYYw2CI0YUudzpzIghAKZyo
THYPADmBfvN2pZa/KU3c1OSKHOH2b91Xi97k3u0fECMHLgXctA3BkQ69fONSzx/c
abgtcydAU0wAD3mG3mr1XI96uOMeVNK0wgYyO5VhzZNziSFhls0D
=kwTD
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -0,0 +1,6 @@
Types: deb
URIs: https://repository.mullvad.net/deb/stable
Suites: bookworm
Components: main
Signed-by: /usr/share/keyrings/mullvad.asc
# vim:ft=debsources

View File

@ -0,0 +1 @@
mullvad.asc

View File

@ -0,0 +1,8 @@
[mullvad-stable]
name=Mullvad VPN
baseurl=https://repository.mullvad.net/rpm/stable/$basearch
type=rpm
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mullvad
# vim: ft=toml

View File

@ -16,6 +16,9 @@ include:
"{{ slsdotpath }}-installed-chrome":
pkg.installed:
- require:
- sls: {{ slsdotpath }}.install-common
- sls: {{ slsdotpath }}.install-chrome-repo
- install_recommends: False
- skip_suggestions: True
- pkgs:

View File

@ -12,6 +12,9 @@ include:
"{{ slsdotpath }}-installed-firefox":
pkg.installed:
- require:
- sls: {{ slsdotpath }}.install-common
- sls: {{ slsdotpath }}.install-firefox-repo
- install_recommends: False
- skip_suggestions: True
- pkgs:

View File

@ -0,0 +1,12 @@
{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% if grains['nodename'] != 'dom0' -%}
{% from 'utils/macros/install-repo.sls' import install_repo -%}
{{ install_repo(sls_path, 'mullvad') }}
{% endif -%}

View File

@ -0,0 +1,9 @@
{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
base:
'tpl-browser':
- browser.install-mullvad-repo

View File

@ -0,0 +1,52 @@
{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% if grains['nodename'] != 'dom0' -%}
include:
- .install-mullvad-repo
- .install-common
"{{ slsdotpath }}-installed-mullvad":
pkg.installed:
- require:
- sls: {{ slsdotpath }}.install-common
- sls: {{ slsdotpath }}.install-mullvad-repo
- install_recommends: False
- skip_suggestions: True
- pkgs:
- mullvad-browser
"{{ slsdotpath }}-mullvad-copy-desktop-application":
file.copy:
- require:
- pkg: "{{ slsdotpath }}-installed-mullvad"
- name: /usr/share/applications/qusal-mullvad-browser.desktop
- source: /usr/share/applications/mullvad-browser.desktop
- user: root
- group: root
- mode: "0644"
- force: True
"{{ slsdotpath }}-mullvad-do-not-detach-from-desktop-application":
file.replace:
- require:
- file: "{{ slsdotpath }}-mullvad-copy-desktop-application"
- name: /usr/share/applications/qusal-mullvad-browser.desktop
- pattern: "--detach"
- repl: ""
- backup: False
"{{ slsdotpath }}-mullvad-add-url-to-desktop-application":
file.replace:
- require:
- file: "{{ slsdotpath }}-mullvad-do-not-detach-from-desktop-application"
- name: /usr/share/applications/qusal-mullvad-browser.desktop
- pattern: '/start-mullvad-browser(.*)[^%u]$'
- repl: '/start-mullvad-browser\1%u'
- backup: False
{% endif -%}

View File

@ -0,0 +1,9 @@
{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
base:
'tpl-browser':
- browser.install-mullvad

View File

@ -48,8 +48,8 @@ features:
- enable:
- appmenus-dispvm
- set:
- default-menu-items: "org.mozilla.firefox.desktop firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-start.desktop libreoffice-base.desktop libreoffice-calc.desktop libreoffice-draw.desktop libreoffice-impress.desktop libreoffice-math.desktop libreoffice-startcenter.desktop libreoffice-writer.desktop org.gnome.Evince.desktop qubes-open-file-manager.desktop" # noqa: 204
- menu-items: "org.mozilla.firefox.desktop firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-start.desktop libreoffice-base.desktop libreoffice-calc.desktop libreoffice-draw.desktop libreoffice-impress.desktop libreoffice-math.desktop libreoffice-startcenter.desktop libreoffice-writer.desktop org.gnome.Evince.desktop qubes-open-file-manager.desktop" # noqa: 204
- default-menu-items: "qusal-mullvad-browser.desktop org.mozilla.firefox.desktop firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-start.desktop libreoffice-base.desktop libreoffice-calc.desktop libreoffice-draw.desktop libreoffice-impress.desktop libreoffice-math.desktop libreoffice-startcenter.desktop libreoffice-writer.desktop org.gnome.Evince.desktop qubes-open-file-manager.desktop" # noqa: 204
- menu-items: "qusal-mullvad-browser.desktop org.mozilla.firefox.desktop firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-start.desktop libreoffice-base.desktop libreoffice-calc.desktop libreoffice-draw.desktop libreoffice-impress.desktop libreoffice-math.desktop libreoffice-startcenter.desktop libreoffice-writer.desktop org.gnome.Evince.desktop qubes-open-file-manager.desktop" # noqa: 204
{%- endload %}
{{ load(defaults) }}