diff --git a/roles/laptop/tasks/asus-x13-flow.yml b/roles/laptop/tasks/asus-x13-flow.yml index 556ffd3..8b810f4 100644 --- a/roles/laptop/tasks/asus-x13-flow.yml +++ b/roles/laptop/tasks/asus-x13-flow.yml @@ -11,3 +11,4 @@ - import_tasks: battery.yml - import_tasks: asusctl.yml - import_tasks: supergfxctl.yml + - import_tasks: nvidia-drivers.yml diff --git a/roles/laptop/tasks/nvidia-drivers.yml b/roles/laptop/tasks/nvidia-drivers.yml new file mode 100644 index 0000000..d71e63a --- /dev/null +++ b/roles/laptop/tasks/nvidia-drivers.yml @@ -0,0 +1,14 @@ +- name: [Arch] install nvidia drivers + when: ansible_distribution == "Archlinux" + become: yes + community.general.pacman: + name: + - nvidia + - nvidia-settings + - nvidia-primepri + - vulkan-radeon + - xf86-video-amdgpu + - libva-mesa-driver + - lib32-amdvlk + - lib32-nvidia-utils + diff --git a/roles/laptop/tasks/supergfxctl.yml b/roles/laptop/tasks/supergfxctl.yml index 9ff840e..39eb975 100644 --- a/roles/laptop/tasks/supergfxctl.yml +++ b/roles/laptop/tasks/supergfxctl.yml @@ -7,3 +7,9 @@ yay -S --needed --noconfirm supergfxctl when: ansible_distribution == "Archlinux" +- name: Enable supergfxctl + become: yes + ansible.builtin.systemd: + name: supergfxctl + state: started + enabled: yes