diff --git a/dotfiles.yml b/dotfiles.yml index 6882fd4..2d587c6 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -3,6 +3,7 @@ tasks: - include_vars: file: vars.yml + - import_tasks: tasks/user.yml - import_tasks: tasks/packages.yml @@ -30,4 +31,7 @@ - import_tasks: tasks/dabapps.yml when: ansible_fqdn == "TOO-Work" + - import_tasks: tasks/mac.yml + when: "'Mac' in ansible_facts.product_name" + - import_tasks: tasks/cleanup.yml diff --git a/tasks/mac.yml b/tasks/mac.yml new file mode 100644 index 0000000..8b5b06e --- /dev/null +++ b/tasks/mac.yml @@ -0,0 +1,22 @@ +- name: "Install macOS packages" + aur: + skip_installed: true + name: "{{ item }}" + become: true + become_user: aur_builder + when: "item not in installed_packages.stdout_lines" + with_items: + - mbpfan-git + - bcwc-pcie-git + +- name: Enable mbpfan service + systemd: + name: mbpfan + enabled: true + state: started + +- name: Make the FN key work the correct way` + lineinfile: + path: /etc/modprobe.d/hid_apple.conf + line: options hid_apple fnmode=2 + create: true