mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Add Hyprland support for nymph: packages, repo, dotfiles, and emptty session
This commit is contained in:
@@ -1,22 +1,49 @@
|
||||
---
|
||||
- name: Ensure XBPS extra repositories directory exists
|
||||
tags: [packages]
|
||||
ansible.builtin.file:
|
||||
path: /etc/xbps.d
|
||||
state: directory
|
||||
mode: "0755"
|
||||
when: (host_xbps_repositories | default([])) | length > 0
|
||||
|
||||
- name: Configure host-specific XBPS repositories
|
||||
tags: [packages]
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/xbps.d/{{ item.name }}.conf"
|
||||
content: |
|
||||
repository={{ item.url }}
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
loop: "{{ host_xbps_repositories | default([]) }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
register: host_xbps_repository_configs
|
||||
when: (host_xbps_repositories | default([])) | length > 0
|
||||
|
||||
- name: Install Void nonfree repository if needed
|
||||
tags: [packages]
|
||||
community.general.xbps:
|
||||
name: void-repo-nonfree
|
||||
state: present
|
||||
update_cache: true
|
||||
update_cache: false
|
||||
register: void_nonfree_repository
|
||||
when: "'void-repo-nonfree' in (host_packages | default([]) + void_packages_base | default([]))"
|
||||
|
||||
- name: Refresh XBPS cache after enabling nonfree repository
|
||||
- name: Refresh XBPS cache after configuring repositories
|
||||
tags: [packages]
|
||||
ansible.builtin.command: xbps-install -S
|
||||
changed_when: false
|
||||
when: "'void-repo-nonfree' in (host_packages | default([]) + void_packages_base | default([]))"
|
||||
community.general.xbps:
|
||||
update_cache: true
|
||||
accept_pubkey: true
|
||||
when: >-
|
||||
(host_xbps_repositories | default([])) | length > 0
|
||||
or (void_nonfree_repository is defined and void_nonfree_repository is changed)
|
||||
|
||||
- name: Synchronize and upgrade Void Linux packages
|
||||
tags: [packages]
|
||||
community.general.xbps:
|
||||
update_cache: true
|
||||
update_cache: false
|
||||
upgrade: true
|
||||
|
||||
- name: Install packages on Void Linux
|
||||
|
||||
8
ansible/roles/profile_desktop_i3/files/Hyprland.desktop
Normal file
8
ansible/roles/profile_desktop_i3/files/Hyprland.desktop
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Name=Hyprland
|
||||
Comment=Hyprland Wayland compositor
|
||||
Exec=Hyprland
|
||||
TryExec=Hyprland
|
||||
Type=Application
|
||||
DesktopNames=Hyprland
|
||||
Keywords=wayland;wm;windowmanager;window;manager;tiling;compositor;
|
||||
@@ -126,6 +126,19 @@
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Install host-specific Wayland sessions for emptty
|
||||
tags: [packages, services, emptty, hyprland]
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/etc/emptty/wayland-sessions/{{ item }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
loop: "{{ host_emptty_wayland_sessions | default([]) }}"
|
||||
loop_control:
|
||||
label: "{{ item }}"
|
||||
when: (host_emptty_wayland_sessions | default([])) | length > 0
|
||||
|
||||
- name: Configure emptty
|
||||
tags: [packages, services, emptty]
|
||||
ansible.builtin.template:
|
||||
|
||||
Reference in New Issue
Block a user