Update laptop tasks

This commit is contained in:
Przemysław Grondek 2023-09-22 19:57:57 +02:00
parent 794c714f0b
commit 5087cbca6d
3 changed files with 21 additions and 0 deletions

View File

@ -11,3 +11,4 @@
- import_tasks: battery.yml - import_tasks: battery.yml
- import_tasks: asusctl.yml - import_tasks: asusctl.yml
- import_tasks: supergfxctl.yml - import_tasks: supergfxctl.yml
- import_tasks: nvidia-drivers.yml

View File

@ -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

View File

@ -7,3 +7,9 @@
yay -S --needed --noconfirm supergfxctl yay -S --needed --noconfirm supergfxctl
when: ansible_distribution == "Archlinux" when: ansible_distribution == "Archlinux"
- name: Enable supergfxctl
become: yes
ansible.builtin.systemd:
name: supergfxctl
state: started
enabled: yes