-
Notifications
You must be signed in to change notification settings - Fork 8
/
habit.sls
36 lines (32 loc) · 837 Bytes
/
habit.sls
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
# We need rust for dijo to work
include:
- lang.rust
- snap
dijo:
cmd.run:
- name: paru -S dijo --noconfirm --skipreview
- runas: {{ grains['user'] }}
- unless: paru -Qi dijo
dijo-data:
file.symlink:
- name: {{ pillar['xdg_data_home'] }}/dijo
- target: /home/{{ grains['user'] }}/Documents/Delta/Dashboards/trackers/dijo
- force: True
dijo-config:
file.managed:
- name: {{ pillar['xdg_config_home'] }}/dijo/config.toml
- makedirs: True
- contents:
- "[look]"
- true_chr = "\u25a9"
- false_chr = "\u25a7"
- future_chr = "\u2027"
- "[colors]"
- reached = "cyan"
- todo = "red"
- inactive = "#8A889D"
harsh:
cmd.run:
- name: paru -S harsh-bin --no-confirm --skipreview
- runas: {{ grains['user'] }}
- unless: paru -Qi harsh-bin