2025-04-07 05:38:03 -05:00
|
|
|
- name: Load devpod variables if DEVPOD is true
|
|
|
|
|
include_vars: "vars/devpod.yml"
|
|
|
|
|
|
2025-05-17 15:09:08 -05:00
|
|
|
- name: install apt
|
|
|
|
|
include_tasks: "./scripts/install_apt.yml"
|
2025-04-07 05:38:03 -05:00
|
|
|
|
2025-09-27 08:06:51 -05:00
|
|
|
- name: install brew
|
|
|
|
|
include_tasks: "./scripts/install_brew.yml"
|
2025-04-07 05:38:03 -05:00
|
|
|
|
2025-09-27 08:08:19 -05:00
|
|
|
#- name: install go
|
|
|
|
|
# include_tasks: "./scripts/install_go.yml"
|
2025-04-07 05:38:03 -05:00
|
|
|
|
2025-09-27 08:15:23 -05:00
|
|
|
- name: prereq for nix
|
2025-05-17 15:28:09 -05:00
|
|
|
become_user: vscode
|
2025-09-27 08:06:51 -05:00
|
|
|
shell: "sudo mkdir -m 0755 /nix && sudo chown vscode /nix"
|
|
|
|
|
|
2025-09-27 08:28:09 -05:00
|
|
|
- name: run stow
|
|
|
|
|
become_user: vscode
|
|
|
|
|
shell: "stow --adopt ."
|
|
|
|
|
args:
|
|
|
|
|
chdir: ~/dotfiles
|
|
|
|
|
|
|
|
|
|
- name: git reset
|
|
|
|
|
become_user: vscode
|
|
|
|
|
shell: "git reset --hard"
|
|
|
|
|
args:
|
|
|
|
|
chdir: ~/dotfiles
|
|
|
|
|
|
2025-09-27 08:15:23 -05:00
|
|
|
- name: install nix
|
2025-09-27 08:06:51 -05:00
|
|
|
become_user: vscode
|
2025-09-27 08:12:05 -05:00
|
|
|
shell: "curl -L https://nixos.org/nix/install | sh -s -- --no-daemon"
|
2025-09-27 08:06:51 -05:00
|
|
|
|
|
|
|
|
- name: Install Nix Packages
|
|
|
|
|
become_user: vscode
|
2025-09-27 08:21:18 -05:00
|
|
|
shell: "/home/vscode/.nix-profile/bin/nix-env -iA nixpkgs.myPackages"
|
2025-04-07 05:44:59 -05:00
|
|
|
args:
|
|
|
|
|
chdir: ~/dotfiles
|
2025-05-17 14:55:43 -05:00
|
|
|
|
2025-09-27 08:06:51 -05:00
|
|
|
- name: install go apps
|
|
|
|
|
include_tasks: "./scripts/install_goapps.yml"
|
|
|
|
|
|
|
|
|
|
- name: Change default shell for user
|
|
|
|
|
user:
|
|
|
|
|
name: vscode
|
2025-09-27 08:15:23 -05:00
|
|
|
shell: /home/vscode/.nix-profile/bin/zsh
|