mirror of
https://gitlab.com/KKlochko/system-config.git
synced 2026-10-31 15:38:08 +00:00
Added AUR and battery optimization modules for Arch.
This commit is contained in:
@@ -6,3 +6,5 @@
|
||||
- native and flatpak apps
|
||||
- os info
|
||||
- wallpapers
|
||||
** 0.7.0 <2023-05-21 Sun>
|
||||
Added AUR and battery optimization modules for *Arch*.
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
collections:
|
||||
- name: community.general
|
||||
- name: kewlfft.aur
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
- name: Install apps
|
||||
kewlfft.aur.aur:
|
||||
name: "{{ item }}"
|
||||
use: "{{ aur_helper }}"
|
||||
state: present
|
||||
become: yes
|
||||
become_user: aur_builder
|
||||
loop:
|
||||
- auto-cpufreq
|
||||
- envycontrol
|
||||
- powertop
|
||||
|
||||
- name: Enable and start auto-cpufreq as daemon
|
||||
systemd:
|
||||
name: auto-cpufreq
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
- name: Create the `aur_builder` user
|
||||
become: yes
|
||||
ansible.builtin.user:
|
||||
name: aur_builder
|
||||
create_home: yes
|
||||
group: wheel
|
||||
|
||||
- name: Allow the `aur_builder` user to run `sudo pacman` without a password
|
||||
become: yes
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sudoers.d/11-install-aur_builder
|
||||
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
|
||||
create: yes
|
||||
validate: 'visudo -cf %s'
|
||||
|
||||
- name: Install aur helper
|
||||
kewlfft.aur.aur:
|
||||
name: "{{ aur_helper }}"
|
||||
use: makepkg
|
||||
state: present
|
||||
become: yes
|
||||
become_user: aur_builder
|
||||
when: aur_helper != "makepkg"
|
||||
|
||||
- name: Install aur apps
|
||||
kewlfft.aur.aur:
|
||||
name: "{{ aur_apps_list }}"
|
||||
use: "{{ aur_helper }}"
|
||||
state: present
|
||||
become: yes
|
||||
become_user: aur_builder
|
||||
when: use_aur_apps == True
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# System
|
||||
## User info
|
||||
username: user
|
||||
|
||||
@@ -14,8 +15,13 @@ native_apps_list:
|
||||
- htop
|
||||
- neofetch
|
||||
- dmenu
|
||||
- alacritty
|
||||
- doublecmd-qt5
|
||||
- flameshot
|
||||
- audacious
|
||||
- audacious-plugins
|
||||
# build yay, paru
|
||||
- make
|
||||
|
||||
## Install flatpak apps
|
||||
use_flatpak_apps: True
|
||||
@@ -23,3 +29,22 @@ use_flatpak_apps: True
|
||||
flatpak_apps_list:
|
||||
- info.mumble.Mumble
|
||||
- net.ankiweb.Anki
|
||||
|
||||
# Arch
|
||||
## AUR
|
||||
use_aur: True
|
||||
|
||||
## Can be one of: yay, paru, pacaur, trizen, pikaur.
|
||||
## or use just makepkg.
|
||||
aur_helper: yay
|
||||
|
||||
use_aur_apps: False
|
||||
|
||||
aur_apps_list:
|
||||
- kawa
|
||||
- zeal
|
||||
|
||||
## Battery optimization
|
||||
### Will download needed packages from AUR (use_aur must be True)
|
||||
arch_battety_optimization = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user