dotfiles/unprocessed/config/automatrop/roles/termux/tasks/main.yml
Geoffrey Frogeye ee178b7d57
nix: Make nix the root
Which means now I'll have to think about real prefixes in commit names.
2023-11-26 23:58:22 +01:00

30 lines
931 B
YAML

---
- name: Create Termux directory
ansible.builtin.file:
state: directory
path: "{{ ansible_user_dir }}/.termux"
mode: u=rwx,g=rx,o=rx
# TODO This is a dotfiles directory.
# Make it not install unless it's Termux
- name: Silence Termux login message
ansible.builtin.file:
state: file
path: "{{ ansible_user_dir }}/.hushlogin"
mode: u=rw,g=r,o=r
# https://github.com/kdrag0n/base16-termux/blob/master/templates/default.mustache
- name: Download base16 theme for Termux
ansible.builtin.copy:
content: "{{ base16_schemes['schemes'][base16_scheme]['termux']['colors']['base16-' + base16_scheme + '.properties'] }}"
dest: "{{ ansible_env.HOME }}/.termux/colors.properties"
mode: u=rw,g=r,o=r
tags:
- color
# TODO
# Upgrade
# If root:
# $ apt install tsu
# $ echo '/system/bin/mount -o remount,rw /; ln -s /data/data/com.termux/files/usr /usr; /system/bin/mount -o remount,ro /' | tsu