paulbsd-salt/states/kitty/config.sls

25 lines
610 B
Plaintext
Raw Normal View History

2022-12-03 00:10:55 +01:00
---
{%- from "kitty/map.jinja" import users with context %}
{%- for name, user in users.items() %}
{%- if user.enabled %}
kitty-config-dir-{{ name }}:
file.directory:
- name: {{ user.home }}/.config/kitty
- user: {{ name }}
- group: {{ user.gid }}
- mode: 0755
2023-01-04 23:36:21 +01:00
kitty-user-{{ name }}:
2022-12-03 00:10:55 +01:00
file.managed:
- name: {{ user.home }}/.config/kitty/kitty.conf
- source: salt://kitty/kitty.conf.j2
- user: {{ name }}
- group: {{ user.gid }}
- mode: 0644
- template: jinja
- require:
- pkg: kitty-pkg
- file: kitty-config-dir-{{ name }}
{%- endif %}
{%- endfor %}