linux-workstation-playbook icon indicating copy to clipboard operation
linux-workstation-playbook copied to clipboard

Find a better way to add nix to path

Open staticdev opened this issue 2 years ago • 0 comments

ableton.nix currently does not do that and just adding to packages.yml:

- name: Add Nix to PATH
  ansible.builtin.set_fact:
    ansible_env: "{{ ansible_env | combine({'PATH': ansible_env.HOME + '/.nix-profile/bin:' + ansible_env.PATH}) }}"

Did not work. Currently all commands have appended:

  environment:
    PATH: "{{ ansible_env.HOME + '/.nix-profile/bin:$PATH' }}

Find a better solution and remove it.

staticdev avatar Jul 02 '23 06:07 staticdev