feat: add Firefox browser from Mozilla repository

This commit is contained in:
Ben Grande 2024-05-24 13:53:17 +02:00
parent c8b9bb3198
commit cbf61e674e
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56
12 changed files with 98 additions and 9 deletions

View File

@ -48,18 +48,27 @@ to install:
```sh
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-chromium
```
- Chrome:
```sh
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-chrome
```
- Firefox-ESR:
- Firefox:
```sh
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-firefox
```
- Firefox-ESR:
```sh
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-firefox-esr
```
- W3M:
```sh
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-w3m
```
- Lynx:
```sh
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-lynx

View File

@ -20,8 +20,11 @@ prefs:
- maxmem: 2000
features:
- set:
- default-menu-items: "firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-start.desktop"
- menu-items: "firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-start.desktop"
- default-menu-items: "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: "firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-open-file-manager.desktop hqubes-start.desktop" # noqa: 204
- disable:
- service.tracker
- service.evolution-data-server
{%- endload %}
{{ load(defaults) }}
@ -49,6 +52,6 @@ features:
- service.tracker
- service.evolution-data-server
- set:
- menu-items: "firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-start.desktop"
- menu-items: "firefox.desktop firefox-esr.desktop chromium.desktop google-chrome.desktop qubes-run-terminal.desktop qubes-open-file-manager.desktop qubes-start.desktop" # noqa: 204
{%-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b [signed-by=/usr/share/keyrings/mozilla.asc] https://packages.mozilla.org/apt mozilla main
# vim:ft=debsources

View File

@ -0,0 +1,6 @@
Types: deb
URIs: https://packages.mozilla.org/apt
Suites: mozilla
Components: main
Signed-by: /usr/share/keyrings/mozilla.asc
# vim:ft=debsources

View File

@ -0,0 +1,21 @@
{#
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-common
"{{ slsdotpath }}-installed-firefox-esr":
pkg.installed:
- require:
- sls: {{ slsdotpath }}.install-common
- install_recommends: False
- skip_suggestions: True
- pkgs:
- firefox-esr
{% 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-firefox-esr

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, 'mozilla') }}
{% 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-firefox-repo

View File

@ -7,15 +7,14 @@ SPDX-License-Identifier: AGPL-3.0-or-later
{% if grains['nodename'] != 'dom0' -%}
include:
- .install-firefox-repo
- .install-common
"{{ slsdotpath }}-installed-firefox":
pkg.installed:
- require:
- sls: {{ slsdotpath }}.install-common
- install_recommends: False
- skip_suggestions: True
- pkgs:
- firefox-esr
- firefox
{% endif -%}

View File

@ -1,5 +1,5 @@
{#
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}

View File

@ -81,7 +81,7 @@ If sls_path is 'browser', then this would install the repo from:
{% endif -%}
{% if salt['cmd.shell']('command -v apt-cacher-ng-repo >/dev/null') -%}
{% if salt['cmd.retcode']('command -v apt-cacher-ng-repo >/dev/null') == 0 -%}
"{{ name }}-run-apt-cacher-ng-repo":
cmd.run:
- name: apt-cacher-ng-repo