From c883a71794336856e09ee6e56403ef3942aff75e Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sat, 27 Sep 2025 08:15:23 -0500 Subject: [PATCH] update --- ansible/roles/devpod/tasks/main.yml | 10 +++++----- install.sh | 23 +++++++++++++---------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/ansible/roles/devpod/tasks/main.yml b/ansible/roles/devpod/tasks/main.yml index e59b73f..0abb5df 100644 --- a/ansible/roles/devpod/tasks/main.yml +++ b/ansible/roles/devpod/tasks/main.yml @@ -10,11 +10,11 @@ #- name: install go # include_tasks: "./scripts/install_go.yml" -- name: install nix +- name: prereq for nix become_user: vscode shell: "sudo mkdir -m 0755 /nix && sudo chown vscode /nix" -- name: install packages via nix +- name: install nix become_user: vscode shell: "curl -L https://nixos.org/nix/install | sh -s -- --no-daemon" @@ -27,9 +27,9 @@ - name: install go apps include_tasks: "./scripts/install_goapps.yml" -- name: git reset +- name: run stow become_user: vscode - shell: "git reset --hard" + shell: "stow --adopt ." args: chdir: ~/dotfiles @@ -42,4 +42,4 @@ - name: Change default shell for user user: name: vscode - shell: zsh + shell: /home/vscode/.nix-profile/bin/zsh diff --git a/install.sh b/install.sh index da573f0..5f49523 100644 --- a/install.sh +++ b/install.sh @@ -1,14 +1,17 @@ #!/bin/bash rm .bashrc .zshrc .ideavirmrc .gitmodules -sudo apt update && sudo apt install stow -stow --adopt . -git reset --hard +sudo apt update && sudo apt install stow ansible -y -sudo mkdir -m 0755 /nix && sudo chown vscode /nix -sh <(curl -L https://nixos.org/nix/install) --no-daemon -/home/vscode/.nix-profile/bin/nix-env -iA nixpkgs.myPackages +make devpod -cd "/home/vscode/dotfiles" - -stow --adopt . -git reset --hard +#stow --adopt . +#git reset --hard +# +#sudo mkdir -m 0755 /nix && sudo chown vscode /nix +#sh <(curl -L https://nixos.org/nix/install) --no-daemon +#/home/vscode/.nix-profile/bin/nix-env -iA nixpkgs.myPackages +# +#cd "/home/vscode/dotfiles" +# +#stow --adopt . +#git reset --hard