mirror of
https://github.com/gaschz/dotfiles.git
synced 2025-11-02 12:38:59 +01:00
The dotfiles provides hardened configuration as well as usability settings, but it has downsides: - Even though some programs allowing including extra files, not all of them do; - Experienced users wants their own configuration that can conflict in file path; - Adds a lot of lines to review that is not strictly necessary for Qusal to work. With this change, users can set pillar values to disable specific components or all components. For: https://github.com/ben-grande/dotfiles/pull/1 For: https://github.com/ben-grande/qusal/issues/17 Co-authored-by: Ben Grande <ben.grande.b@gmail.com>
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
{#
|
|
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:tmux", default=qusal_dot) -%}
|
|
|
|
{%- import "dom0/gui-user.jinja" as gui_user -%}
|
|
|
|
"{{ slsdotpath }}-copy-tmux-home":
|
|
file.recurse:
|
|
- name: {{ gui_user.gui_user_home }}/
|
|
- source: salt://{{ slsdotpath }}/files/tmux/
|
|
- file_mode: '0644'
|
|
- dir_mode: '0700'
|
|
- user: {{ gui_user.gui_user }}
|
|
- group: {{ gui_user.gui_user }}
|
|
|
|
"{{ slsdotpath }}-fix-executables-tmux-home":
|
|
file.directory:
|
|
- name: {{ gui_user.gui_user_home }}/.local/bin
|
|
- mode: '0755'
|
|
- recurse:
|
|
- mode
|
|
|
|
"{{ slsdotpath }}-copy-tmux-skel":
|
|
file.recurse:
|
|
- name: /etc/skel
|
|
- source: salt://{{ slsdotpath }}/files/tmux/
|
|
- file_mode: '0644'
|
|
- dir_mode: '0700'
|
|
- user: root
|
|
- group: root
|
|
|
|
"{{ slsdotpath }}-fix-executables-tmux-skel":
|
|
file.directory:
|
|
- name: /etc/skel/.local/bin
|
|
- mode: '0755'
|
|
- recurse:
|
|
- mode
|
|
|
|
{%- else -%}
|
|
|
|
"{{ sls }}-was-disabled-by-pillar":
|
|
test.nop
|
|
|
|
{%- endif %}
|