2023-11-13 09:33:28 -05:00
|
|
|
{#
|
2024-03-18 11:29:01 -04:00
|
|
|
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
#}
|
|
|
|
|
|
|
|
{% if grains['nodename'] == 'dom0' -%}
|
|
|
|
|
2024-04-30 21:23:19 -04:00
|
|
|
{%- import slsdotpath ~ "/gui-user.jinja" as gui_user -%}
|
|
|
|
|
2024-03-18 11:29:01 -04:00
|
|
|
include:
|
|
|
|
- utils.tools.common.update
|
2023-11-13 09:33:28 -05:00
|
|
|
|
2024-06-04 04:43:16 -04:00
|
|
|
"{{ slsdotpath }}-desktop-kde-installed":
|
2023-11-13 09:33:28 -05:00
|
|
|
pkg.installed:
|
2024-03-18 11:29:01 -04:00
|
|
|
- require:
|
|
|
|
- sls: utils.tools.common.update
|
2024-08-16 08:02:53 -04:00
|
|
|
- setopt: "install_weak_deps=False"
|
2023-11-13 09:33:28 -05:00
|
|
|
- pkgs:
|
|
|
|
- kde-settings-qubes
|
|
|
|
- sddm
|
|
|
|
|
2024-06-04 04:43:16 -04:00
|
|
|
"{{ slsdotpath }}-desktop-kde-configure-xinit":
|
2023-11-13 09:33:28 -05:00
|
|
|
file.managed:
|
|
|
|
- name: /etc/X11/xinit/xinitrc.d/55xfce-qubes.sh
|
|
|
|
- source: salt://{{ slsdotpath }}/files/xinitrc.d/55xfce-qubes.sh
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: '0755'
|
|
|
|
|
2024-06-04 04:43:16 -04:00
|
|
|
"{{ slsdotpath }}-desktop-kde-configure-sddm":
|
2023-11-13 09:33:28 -05:00
|
|
|
file.managed:
|
|
|
|
- name: /etc/sddm.conf.d/qubes.conf
|
|
|
|
- source: salt://{{ slsdotpath }}/files/sddm.conf.d/qubes.conf
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: '0644'
|
|
|
|
- makedirs: True
|
|
|
|
|
2024-06-04 04:43:16 -04:00
|
|
|
"{{ slsdotpath }}-desktop-kde-disable-lightdm":
|
2023-11-13 09:33:28 -05:00
|
|
|
cmd.run:
|
|
|
|
- name: systemctl disable lightdm
|
|
|
|
- runas: root
|
2023-12-19 07:02:04 -05:00
|
|
|
- require:
|
2024-06-08 00:17:09 -04:00
|
|
|
- pkg: {{ slsdotpath }}-desktop-kde-installed
|
2023-11-13 09:33:28 -05:00
|
|
|
|
2024-06-04 04:43:16 -04:00
|
|
|
"{{ slsdotpath }}-desktop-kde-enable-sddm":
|
2023-11-13 09:33:28 -05:00
|
|
|
cmd.run:
|
|
|
|
- name: systemctl enable sddm
|
|
|
|
- runas: root
|
|
|
|
- require:
|
2024-06-08 00:17:09 -04:00
|
|
|
- cmd: {{ slsdotpath }}-desktop-kde-disable-lightdm
|
2023-11-13 09:33:28 -05:00
|
|
|
|
2024-06-04 04:43:16 -04:00
|
|
|
"{{ slsdotpath }}-desktop-kde-activity-notifier":
|
2023-11-13 09:33:28 -05:00
|
|
|
file.managed:
|
2024-04-30 10:04:40 -04:00
|
|
|
- name: {{ gui_user.gui_user_home }}/.config/autostart-scripts/kde-activity-changed-notifier
|
2023-11-13 09:33:28 -05:00
|
|
|
- source: salt://{{ slsdotpath }}/files/autostart-scripts/kde-activity-changed-notifier
|
2024-04-30 10:04:40 -04:00
|
|
|
- user: {{ gui_user.gui_user }}
|
|
|
|
- group: {{ gui_user.gui_user }}
|
2023-11-13 09:33:28 -05:00
|
|
|
- mode: '0755'
|
|
|
|
- makedirs: True
|
|
|
|
|
2024-06-04 04:43:16 -04:00
|
|
|
"{{ slsdotpath }}-desktop-kde-qubes-kde-win-rules":
|
2023-11-13 09:33:28 -05:00
|
|
|
file.managed:
|
2024-04-30 10:04:40 -04:00
|
|
|
- name: {{ gui_user.gui_user_home }}/.local/bin/qubes-kde-win-rules
|
2023-11-13 09:33:28 -05:00
|
|
|
- source: salt://{{ slsdotpath }}/files/bin/qubes-kde-win-rules
|
2024-04-30 10:04:40 -04:00
|
|
|
- user: {{ gui_user.gui_user }}
|
|
|
|
- group: {{ gui_user.gui_user }}
|
2023-11-13 09:33:28 -05:00
|
|
|
- mode: '0755'
|
|
|
|
- makedirs: True
|
|
|
|
|
|
|
|
{% endif -%}
|