mirror of
https://github.com/ben-grande/qusal.git
synced 2024-12-24 23:19:37 -05:00
5722a25779
Useful when Dom0 has the non-default username, less useful for DomUs. Fixes: https://github.com/ben-grande/qusal/issues/43
24 lines
585 B
Plaintext
24 lines
585 B
Plaintext
{#
|
|
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
#}
|
|
|
|
{% if grains['nodename'] == 'dom0' -%}
|
|
|
|
{%- import slsdotpath ~ "/gui-user.jinja" as gui_user -%}
|
|
|
|
include:
|
|
- dotfiles.copy-all
|
|
|
|
"{{ slsdotpath }}-xprofile-sourcer":
|
|
file.managed:
|
|
- name: {{ gui_user.gui_user_home }}/.config/autostart/xprofile.desktop
|
|
- source: salt://{{ slsdotpath }}/files/autostart/xprofile.desktop
|
|
- user: {{ gui_user.gui_user }}
|
|
- group: {{ gui_user.gui_user }}
|
|
- mode: '0644'
|
|
- makedirs: True
|
|
|
|
{% endif -%}
|