ENH turn rofi device config into template

This commit is contained in:
Nathan Dwarshuis 2022-08-05 23:31:27 -04:00
parent 12ed6ffbf5
commit a6d2d856a5
2 changed files with 44 additions and 59 deletions

View File

@ -23,6 +23,7 @@ data:
vpn: {{ and $desktop (promptBool "vpn" false) }} vpn: {{ and $desktop (promptBool "vpn" false) }}
seafile: {{ and $desktop (promptBool "seafile" false) }} seafile: {{ and $desktop (promptBool "seafile" false) }}
conky_alias: {{ if $desktop -}}{{ (promptString "conky" "none") }}{{ else }}none{{ end }} conky_alias: {{ if $desktop -}}{{ (promptString "conky" "none") }}{{ else }}none{{ end }}
rofi_alias: {{ if $desktop -}}{{ (promptString "rofi-alias" "none") }}{{ else }}none{{ end }}
development: development:
{{- /* emacs implies that most development options are true */}} {{- /* emacs implies that most development options are true */}}

View File

@ -1,63 +1,28 @@
# directory for all relative, transitive mountpoints # directory for all relative, transitive mountpoints
mountdir: /tmp/media/ndwar mountdir: /tmp/media/{{ .chezmoi.username }}
verbose: false verbose: false
devices: devices:
accounts: {{- if eq .features.rofi_alias "laptop" -}}
type: veracrypt {{- $mntdata := "/mnt/data" -}}
mount: {{- $crypt := $mntdata | printf "%s/Documents/.crypt" }}
mountpoint: accounts
volume: /mnt/data/Documents/.crypt/accounts
password:
bitwarden:
key: Veracrypt (accounts)
gnupg: gnupg:
type: veracrypt type: veracrypt
mount: mount:
mountpoint: /home/ndwar/.config/gnupg mountpoint: {{ .paths.config }}/gnupg
volume: /mnt/data/Documents/.crypt/gnupg volume: {{ $crypt }}/gnupg
password: password:
bitwarden: bitwarden:
key: Veracrypt (gpg) key: Veracrypt (gpg)
ssh: ssh:
type: veracrypt type: veracrypt
mount: mount:
mountpoint: /home/ndwar/.ssh mountpoint: {{ .chezmoi.homeDir }}/.ssh
label: ssh label: ssh
volume: /mnt/data/Documents/.crypt/ssh-config volume: {{ $crypt }}/ssh-config
password: password:
bitwarden: bitwarden:
key: Veracrypt (ssh) key: Veracrypt (ssh)
ansible_pki:
type: veracrypt
mount:
mountpoint: ansible-pki
volume: /mnt/data/Documents/.crypt/ansible
password:
bitwarden:
key: Veracrypt (Ansible PKI)
call_logs:
type: veracrypt
mount:
mountpoint: call-logs
volume: /mnt/data/Documents/.crypt/call_logs
password:
bitwarden:
key: Veracrypt (ACR)
music:
type: sshfs
mount:
mountpoint: /mnt/data/Music
remote: portnoy4prez:/mnt/data/home/Music
depends:
- ssh
videos:
type: sshfs
mount:
mountpoint: /mnt/data/Videos
remote: portnoy4prez:/mnt/data/home/Videos
depends:
- ssh
ebm_snakemake: ebm_snakemake:
type: sshfs type: sshfs
mount: mount:
@ -66,23 +31,42 @@ devices:
remote: nisaba:/aigenomics/EBM_dev/snakemake remote: nisaba:/aigenomics/EBM_dev/snakemake
depends: depends:
- ssh - ssh
roylab: accounts:
type: cifs type: veracrypt
mount: mount:
mountpoint: Roylab mountpoint: accounts
remote: //ad.gatech.edu/bme/labs/roy-lab volume: {{ $crypt }}/accounts
password: password:
libsecret: bitwarden:
attributes: key: Veracrypt (accounts)
user: ndwarshuis3@gatech.edu ansible_pki:
host: outlook.office365.com type: veracrypt
mc3m:
type: cifs
mount: mount:
mountpoint: MC3M mountpoint: ansible-pki
remote: //ad.gatech.edu/bme/labs/mc3m volume: {{ $crypt }}/ansible
password: password:
libsecret: bitwarden:
attributes: key: Veracrypt (Ansible PKI)
user: ndwarshuis3@gatech.edu call_logs:
host: outlook.office365.com type: veracrypt
mount:
mountpoint: call-logs
volume: {{ $crypt }}/call_logs
password:
bitwarden:
key: Veracrypt (ACR)
music:
type: sshfs
mount:
mountpoint: {{ $mntdata }}/Music
remote: portnoy4prez:/mnt/data/home/Music
depends:
- ssh
videos:
type: sshfs
mount:
mountpoint: {{ $mntdata }}/Videos
remote: portnoy4prez:/mnt/data/home/Videos
depends:
- ssh
{{ end -}}