diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl index b6c6c00..1dd93b4 100644 --- a/.chezmoi.toml.tmpl +++ b/.chezmoi.toml.tmpl @@ -4,11 +4,12 @@ {{- $shell := promptBoolOnce . "features.shell" "Do you want to install the Fish shell" true }} {{- $git := promptBoolOnce . "features.git" "Do you want to install Git" true }} {{- $editor := promptBoolOnce . "features.editor" "Do you want to install Neovim" true }} -{{- $nix := promptBoolOnce . "features.editor" "Do you want to install the Nix package manager" true }} +{{- $nix := promptBoolOnce . "features.nix" "Do you want to install the Nix package manager" true }} +{{- $terminal := promptBoolOnce . "features.terminal" "Do you want to install Wezterm" true }} {{- $paru := false -}} {{ if eq .chezmoi.osRelease.id "arch" -}} - {{- $paru = promptBoolOnce . "features.editor" "Do you want to install the Paru package manager" true -}} + {{- $paru = promptBoolOnce . "features.paru" "Do you want to install the Paru package manager" true -}} {{- end }} [data] @@ -21,3 +22,4 @@ git = {{ $git }} editor = {{ $editor }} nix = {{ $nix }} paru = {{ $paru }} +terminal = {{ $terminal }} diff --git a/home/private_dot_config/wezterm/wezterm.lua b/home/private_dot_config/wezterm/wezterm.lua new file mode 100644 index 0000000..f75e930 --- /dev/null +++ b/home/private_dot_config/wezterm/wezterm.lua @@ -0,0 +1,6 @@ +local wezterm = require 'wezterm' +local config = wezterm.config_builder() + + + +return config diff --git a/setup-script/playbook.yaml b/setup-script/playbook.yaml index a760661..c8d2161 100644 --- a/setup-script/playbook.yaml +++ b/setup-script/playbook.yaml @@ -33,3 +33,5 @@ when: features.nix == true - role: paru when: chezmoi.osRelease.id == "arch" and features.paru == true + - role: terminal + when: chezmoi.osRelease.id == "arch" and features.terminal == true diff --git a/setup-script/roles/terminal/tasks/main.yaml b/setup-script/roles/terminal/tasks/main.yaml new file mode 100644 index 0000000..5341591 --- /dev/null +++ b/setup-script/roles/terminal/tasks/main.yaml @@ -0,0 +1,5 @@ +- name: Install Neovim on Arch + become: true + ansible.builtin.pacman: + name: wezterm + when: chezmoi.osRelease.id == "arch"