Update Linux framework laptop for AMD board.
Unfortunately, FreeBSD does not seem to boot so it is not being updated in this commit.
This commit is contained in:
parent
9d54609a12
commit
a7fe6ff42d
@ -12,11 +12,11 @@ network_rc: "odofreebsd_network.conf"
|
||||
rc_conf: "odofreebsd_rc.conf"
|
||||
loader_conf: "odofreebsd_loader.conf"
|
||||
install_graphics: true
|
||||
graphics_driver: "intel"
|
||||
cputype: "intel"
|
||||
graphics_driver: "amd"
|
||||
cputype: "amd"
|
||||
cpu_opt: tigerlake
|
||||
hwpstate: true
|
||||
cores: 8
|
||||
cores: 16
|
||||
build_user:
|
||||
name: talexander
|
||||
group: talexander
|
||||
|
@ -21,7 +21,7 @@ zfs_snapshot_datasets:
|
||||
- path: zroot/linux/archmain/be
|
||||
- path: zroot/data/bridge/family_disks
|
||||
install_graphics: true
|
||||
graphics_driver: "intel"
|
||||
graphics_driver: "amd"
|
||||
build_user:
|
||||
name: talexander
|
||||
group: talexander
|
||||
@ -30,9 +30,9 @@ enabled_wireguard:
|
||||
- wgh
|
||||
- drmario
|
||||
- colo
|
||||
cputype: "intel"
|
||||
cputype: "amd"
|
||||
hwpstate: true
|
||||
cores: 8
|
||||
cores: 16
|
||||
sway_conf_files:
|
||||
- rofimoji
|
||||
docker_storage_driver: overlay2 # alternatively zfs
|
||||
|
12
ansible/roles/build/files/aurutils-nuke
Executable file
12
ansible/roles/build/files/aurutils-nuke
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# If something is very wrong in pacman, this removes the keyring and the entire custom repo, then sets up pacman's keyring again. Running the ansible playbook is necessary to get the custom repo added.
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
doas rm -rf /var/cache/pacman/custom/ /etc/pacman.d/conf.d/aurutils.conf
|
||||
doas rm -rf /etc/pacman.d/gnupg
|
||||
doas pacman-key --init
|
||||
doas pacman-key --populate archlinux
|
||||
doas pacman -S archlinux-keyring
|
@ -111,6 +111,8 @@
|
||||
loop:
|
||||
- src: aurutils-purge
|
||||
dest: /usr/local/bin/aurutils-purge
|
||||
- src: aurutils-nuke
|
||||
dest: /usr/local/bin/aurutils-nuke
|
||||
- src: aurutils-sync
|
||||
dest: /usr/local/bin/aurutils-sync
|
||||
- src: aurutils-update-devel-packages
|
||||
|
5
ansible/roles/cpu/tasks/linux_amd.yaml
Normal file
5
ansible/roles/cpu/tasks/linux_amd.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- powertop
|
||||
state: present
|
20
ansible/roles/graphics/tasks/linux_amd.yaml
Normal file
20
ansible/roles/graphics/tasks/linux_amd.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
# TODO: decide between amdgpu_top, nvtop, and radeontop
|
||||
# TODO: Should I enable APM?
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- linux-firmware # Arch wiki claims this is needed to boot
|
||||
- mesa
|
||||
- lib32-mesa
|
||||
- vulkan-radeon
|
||||
- lib32-vulkan-radeon
|
||||
- libva-mesa-driver # Accelerated video decoding
|
||||
- lib32-libva-mesa-driver # Accelerated video decoding
|
||||
- mesa-vdpau # Accelerated video decoding
|
||||
- lib32-mesa-vdpau # Accelerated video decoding
|
||||
- vulkan-icd-loader
|
||||
- lib32-vulkan-icd-loader
|
||||
- libva-utils # for vainfo
|
||||
- vdpauinfo # for vdpauinfo
|
||||
- vulkan-tools # For vulkaninfo
|
||||
state: present
|
10
ansible/roles/media/tasks/amd.yaml
Normal file
10
ansible/roles/media/tasks/amd.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
- name: Install scripts
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- src: cast_file_vaapi
|
||||
dest: /usr/local/bin/cast_file
|
@ -6,5 +6,5 @@
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- src: cast_file_intel
|
||||
- src: cast_file_vaapi
|
||||
dest: /usr/local/bin/cast_file
|
||||
|
Loading…
x
Reference in New Issue
Block a user