summaryrefslogtreecommitdiffstats
path: root/roles/hyprland/tasks/main.yml
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-14 17:24:38 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-14 17:24:38 +0200
commit4f29b6dd05b4826f7a1df57d70537f2dc8d1d8f8 (patch)
tree87a992ea9b0b83730d22194b353036a34d09d205 /roles/hyprland/tasks/main.yml
parent0e24c6583a159d1e7626cffec25e30f0656f09b8 (diff)
Replace hyprland_nvidia boolean with a fact from the role
This to make the role have less configurations, and less prune to human errors
Diffstat (limited to 'roles/hyprland/tasks/main.yml')
-rw-r--r--roles/hyprland/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml
index d14b556c..4a64956e 100644
--- a/roles/hyprland/tasks/main.yml
+++ b/roles/hyprland/tasks/main.yml
@@ -1,4 +1,11 @@
---
+- name: "Detect NVIDIA driver"
+ ansible.builtin.command:
+ cmd: "modinfo nvidia"
+ register: "hyprland_nvidia_detected"
+ changed_when: false
+ failed_when: false
+
- name: "Ensure hyprland packages are installed"
become: true
ansible.builtin.package: