summaryrefslogtreecommitdiffstats
path: root/roles/gpu-switch
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-28 16:45:10 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-28 16:45:10 +0100
commit0cce2285d5bee1e53c58f32b33af8d7e351ee6d7 (patch)
tree882c31267cde17155aed0f63a2519ad488cf8fc6 /roles/gpu-switch
parent2165226bf04d177ad5ff2b42f148a4b9aa2f12b0 (diff)
Replace mac nvidia main driver with integrated driver
The nvidia driver doesn't work no matter what, so replacing it for now with the integrated CPU i915 driver
Diffstat (limited to 'roles/gpu-switch')
-rw-r--r--roles/gpu-switch/defaults/main.yml2
-rw-r--r--roles/gpu-switch/meta/argument_specs.yml10
-rw-r--r--roles/gpu-switch/meta/main.yml12
-rw-r--r--roles/gpu-switch/tasks/main.yml22
4 files changed, 0 insertions, 46 deletions
diff --git a/roles/gpu-switch/defaults/main.yml b/roles/gpu-switch/defaults/main.yml
deleted file mode 100644
index db1abd44..00000000
--- a/roles/gpu-switch/defaults/main.yml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-gpu_switch_dedicated: false
diff --git a/roles/gpu-switch/meta/argument_specs.yml b/roles/gpu-switch/meta/argument_specs.yml
deleted file mode 100644
index 46632ea4..00000000
--- a/roles/gpu-switch/meta/argument_specs.yml
+++ /dev/null
@@ -1,10 +0,0 @@
----
-argument_specs:
- main:
- short_description: "Install gpu-switch"
- description: "Install gpu-switch"
- options:
- gpu_switch_dedicated:
- type: "bool"
- default: false
- description: "Enable dedicated GPU on machine when true other wise use default iGPU"
diff --git a/roles/gpu-switch/meta/main.yml b/roles/gpu-switch/meta/main.yml
deleted file mode 100644
index 3a4515bb..00000000
--- a/roles/gpu-switch/meta/main.yml
+++ /dev/null
@@ -1,12 +0,0 @@
----
-dependencies:
- - role: "yay"
-galaxy_info:
- author: "a14m"
- description: "Install gpu-switch"
- license: "MIT"
- min_ansible_version: "2.18"
- platforms:
- - name: "ArchLinux"
- versions:
- - "all"
diff --git a/roles/gpu-switch/tasks/main.yml b/roles/gpu-switch/tasks/main.yml
deleted file mode 100644
index 14cc3be2..00000000
--- a/roles/gpu-switch/tasks/main.yml
+++ /dev/null
@@ -1,22 +0,0 @@
----
-- name: "Ensure gpu-switch is installed"
- become: true
- become_user: "aur_builder"
- kewlfft.aur.aur:
- name: "gpu-switch"
- state: "present"
- use: "yay"
-
-- name: "Configure gpu-switch to use dedicated GPU"
- become: true
- ansible.builtin.command:
- cmd: "gpu-switch -d"
- changed_when: false
- when: gpu_switch_dedicated
-
-- name: "Configure gpu-switch to use integrated GPU"
- become: true
- ansible.builtin.command:
- cmd: "gpu-switch -i"
- changed_when: false
- when: not gpu_switch_dedicated