-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcopy-gtk.sls
More file actions
36 lines (28 loc) · 943 Bytes
/
copy-gtk.sls
File metadata and controls
36 lines (28 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-FileCopyrightText: 2024 seven-beep <ebn@entreparentheses.xyz>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{%- set qusal_dot = salt["pillar.get"]("qusal:dotfiles:all", default=True) -%}
{%- if salt["pillar.get"]("qusal:dotfiles:gtk", default=qusal_dot) -%}
{%- import "dom0/gui-user.jinja" as gui_user -%}
"{{ slsdotpath }}-copy-gtk-home":
file.recurse:
- name: {{ gui_user.gui_user_home }}/
- source: salt://{{ slsdotpath }}/files/gtk/
- file_mode: '0644'
- dir_mode: '0700'
- user: {{ gui_user.gui_user }}
- group: {{ gui_user.gui_user }}
"{{ slsdotpath }}-copy-gtk-skel":
file.recurse:
- name: /etc/skel
- source: salt://{{ slsdotpath }}/files/gtk/
- file_mode: '0644'
- dir_mode: '0700'
- user: root
- group: root
{%- else -%}
"{{ sls }}-was-disabled-by-pillar":
test.nop
{%- endif %}