qusal/salt/sys-gui/install.sls

92 lines
2.6 KiB
Plaintext

{#
SPDX-FileCopyrightText: 2019 Frederic Pierret <frederic.pierret@qubes-os.org>
SPDX-FileCopyrightText: 2020 - 2024 Marmarek Marczykowski-Gorecki <marmarek@invisiblethingslab.com>
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: GPL-2.0-only
Upstream pkg.installed installs weak_deps/recommends.
#}
{% if grains['nodename'] != 'dom0' -%}
include:
- utils.tools.common.update
- dotfiles.copy-all
"{{ slsdotpath }}-installed":
pkg.installed:
- require:
- sls: utils.tools.common.update
- install_recommends: False
- skip_suggestions: True
- pkgs:
# Qubes related packages
- qubes-core-agent-passwordless-root
- qubes-manager
- qubes-desktop-linux-manager
- qubes-vm-guivm
# Xfce related packages
- arc-theme
- gvfs
- xdg-user-dirs-gtk
- xfce4-appfinder
- xfce4-datetime-plugin
- xfce4-panel
- xfce4-places-plugin
- xfce4-power-manager
- xfce4-pulseaudio-plugin
- xfce4-session
- xfce4-settings
- xfce4-settings-qubes
- xfce4-taskmanager
- xfce4-terminal
- xfconf
- xfwm4
{% set pkg = {
'Debian': {
'pkg': ['blackbird-gtk-theme', 'gnome-themes-standard',
'greybird-gtk-theme', 'gtk3-engines-xfce', 'libxfce4ui-utils',
'lightdm', 'xfce4-screenshooter', 'xfdesktop4', 'xscreensaver']
},
'RedHat': {
'pkg': ['dummy-psu-receiver', 'dummy-psu-module', 'dummy-backlight-vm',
'adwaita-gtk2-theme', 'adwaita-icon-theme', 'greybird-dark-theme',
'greybird-light-theme', 'greybird-xfce4-notifyd-theme',
'greybird-xfwm4-theme', 'gtk-xfce-engine', 'lightdm-gtk',
'xfce4-about', 'xfce4-screenshooter-plugin', 'xfdesktop',
'xfwm4-themes', 'xscreensaver-base']
},
}.get(grains.os_family) -%}
"{{ slsdotpath }}-installed-os-specific":
pkg.installed:
- require:
- sls: utils.tools.common.update
- install_recommends: False
- skip_suggestions: True
- pkgs: {{ pkg.pkg|sequence|yaml }}
"{{ slsdotpath }}-lightdm-service-unit":
file.managed:
- name: /usr/lib/systemd/system/lightdm.service.d/qubes.conf
- source: salt://{{ slsdotpath }}/files/server/systemd/lightdm.service.d/qubes.conf
- mode: '0644'
- user: root
- group: root
- makedirs: True
"{{ slsdotpath }}-lightdm-service-enabled":
service.enabled:
- require:
- pkg: "{{ slsdotpath }}-installed"
- name: lightdm
"{{ slsdotpath }}-lock-root":
user.present:
- name: root
- password: '!!'
{% endif -%}