Compare commits
No commits in common. "38d255f0ab8c33b18a5d526a6313651df9332b40" and "c7610fe91742927b0e744ee270ff954f69effef4" have entirely different histories.
38d255f0ab
...
c7610fe917
@ -15,7 +15,6 @@ pflog_conf:
|
|||||||
- name: 0
|
- name: 0
|
||||||
dev: pflog0
|
dev: pflog0
|
||||||
cputype: "amd"
|
cputype: "amd"
|
||||||
hwpstate: true
|
|
||||||
etc_hosts: {}
|
etc_hosts: {}
|
||||||
wireguard_directory: mrmanager
|
wireguard_directory: mrmanager
|
||||||
enabled_wireguard:
|
enabled_wireguard:
|
||||||
|
@ -17,7 +17,6 @@ graphics_driver: "amd"
|
|||||||
cputype: "amd"
|
cputype: "amd"
|
||||||
hwpstate: true
|
hwpstate: true
|
||||||
cores: 16
|
cores: 16
|
||||||
sound_system: "oss"
|
|
||||||
users:
|
users:
|
||||||
talexander:
|
talexander:
|
||||||
initialize: true
|
initialize: true
|
||||||
|
@ -29,6 +29,15 @@
|
|||||||
- meld
|
- meld
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Set timezone
|
||||||
|
file:
|
||||||
|
src: "/usr/share/zoneinfo/{{ timezone|default('UTC') }}"
|
||||||
|
dest: /etc/localtime
|
||||||
|
owner: root
|
||||||
|
# TODO: Arch Linux is changing the group to root instead of wheel. Maybe make this a variable?
|
||||||
|
group: wheel
|
||||||
|
state: link
|
||||||
|
|
||||||
- name: Install scripts
|
- name: Install scripts
|
||||||
copy:
|
copy:
|
||||||
src: "files/{{ item.src }}"
|
src: "files/{{ item.src }}"
|
||||||
|
@ -1,11 +1,3 @@
|
|||||||
- name: Set timezone
|
|
||||||
file:
|
|
||||||
src: "/usr/share/zoneinfo/{{ timezone|default('UTC') }}"
|
|
||||||
dest: /etc/localtime
|
|
||||||
owner: root
|
|
||||||
group: wheel
|
|
||||||
state: link
|
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
|
@ -1,11 +1,3 @@
|
|||||||
- name: Set timezone
|
|
||||||
file:
|
|
||||||
src: "/usr/share/zoneinfo/{{ timezone|default('UTC') }}"
|
|
||||||
dest: /etc/localtime
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
state: link
|
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
@ -26,6 +18,17 @@
|
|||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
|
# Of questionable value since I don't use swap on my machines
|
||||||
|
- name: Configure sysctls for swap
|
||||||
|
sysctl:
|
||||||
|
name: "{{ item.name }}"
|
||||||
|
value: "{{ item.value }}"
|
||||||
|
state: present
|
||||||
|
sysctl_file: /etc/sysctl.d/swap.conf
|
||||||
|
loop:
|
||||||
|
- name: vm.swappiness
|
||||||
|
value: 10
|
||||||
|
|
||||||
- name: Install scripts
|
- name: Install scripts
|
||||||
copy:
|
copy:
|
||||||
src: "files/{{ item.src }}"
|
src: "files/{{ item.src }}"
|
||||||
@ -38,31 +41,3 @@
|
|||||||
dest: /usr/local/bin/mount_disk_image
|
dest: /usr/local/bin/mount_disk_image
|
||||||
- src: watch_linux
|
- src: watch_linux
|
||||||
dest: /usr/local/bin/ww
|
dest: /usr/local/bin/ww
|
||||||
|
|
||||||
- name: Configure sysctls
|
|
||||||
sysctl:
|
|
||||||
name: "{{ item.name }}"
|
|
||||||
value: "{{ item.value }}"
|
|
||||||
state: present
|
|
||||||
sysctl_file: /etc/sysctl.d/{{ item.file }}
|
|
||||||
loop:
|
|
||||||
# Of questionable value since I don't use swap on my machines
|
|
||||||
- name: vm.swappiness
|
|
||||||
value: 10
|
|
||||||
file: swap.conf
|
|
||||||
# Enable TCP packetization-layer PMTUD when an ICMP black hole is detected.
|
|
||||||
- name: net.ipv4.tcp_mtu_probing
|
|
||||||
value: 1
|
|
||||||
file: tcp.conf
|
|
||||||
# Switch to bbr tcp congestion control which should be better on lossy connections like bad wifi.
|
|
||||||
- name: net.ipv4.tcp_congestion_control
|
|
||||||
value: bbr
|
|
||||||
file: tcp.conf
|
|
||||||
# Don't do a slow start after a connection has been idle for a single RTO.
|
|
||||||
- name: net.ipv4.tcp_slow_start_after_idle
|
|
||||||
value: 0
|
|
||||||
file: tcp.conf
|
|
||||||
# 3x time to accumulate filesystem changes before flushing to disk.
|
|
||||||
- name: vm.dirty_writeback_centisecs
|
|
||||||
value: 1500
|
|
||||||
file: power.conf
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
CPUTYPE?=x86-64-v4
|
CPUTYPE?=x86-64-v4
|
||||||
.elif ${.CURDIR:N*/lang/gcc48*} && ${.CURDIR:N*/lang/gcc10*} && ${.CURDIR:N*/devel/binutils*} && ${.CURDIR:N*/devel/qt6-base*} && ${.CURDIR:N*/www/node20*}
|
.elif ${.CURDIR:N*/lang/gcc48*} && ${.CURDIR:N*/lang/gcc10*} && ${.CURDIR:N*/devel/binutils*} && ${.CURDIR:N*/devel/qt6-base*} && ${.CURDIR:N*/www/node20*}
|
||||||
CPUTYPE?=znver4
|
CPUTYPE?=znver4
|
||||||
|
# CPUTYPE?=x86-64-v4
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# Disable static for subversion because /usr/local/lib/libutf8proc.a not found despite utf8proc being installed
|
# Disable static for subversion because /usr/local/lib/libutf8proc.a not found despite utf8proc being installed
|
||||||
@ -25,8 +26,7 @@ OPTIONS_SET+=NATIVECOMP PGTK
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${.CURDIR:M*/www/firefox*}
|
.if ${.CURDIR:M*/www/firefox*}
|
||||||
OPTIONS_UNSET+=PULSEAUDIO SNDIO
|
OPTIONS_UNSET+=PULSEAUDIO SNDIO JACK
|
||||||
OPTIONS_UNSET+=JACK
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
OPTIONS_SET+=OPTIMIZED_CFLAGS
|
OPTIONS_SET+=OPTIMIZED_CFLAGS
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
archivers/unrar
|
archivers/unrar
|
||||||
archivers/unzip
|
archivers/unzip
|
||||||
archivers/zip
|
archivers/zip
|
||||||
|
audio/jack
|
||||||
audio/mixertui
|
audio/mixertui
|
||||||
|
audio/noise-suppression-for-voice-lv2
|
||||||
|
audio/pavucontrol
|
||||||
|
audio/qjackctl
|
||||||
databases/sqlite3
|
databases/sqlite3
|
||||||
deskutils/xdg-desktop-portal
|
deskutils/xdg-desktop-portal
|
||||||
devel/git
|
devel/git
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Check that rust-analyzer is valid for date on https://rust-lang.github.io/rustup-components-history/
|
# Check that rust-analyzer is valid for date on https://rust-lang.github.io/rustup-components-history/
|
||||||
rust_date: "2024-05-06"
|
rust_date: "2024-04-29"
|
||||||
# rust_analyzer_version: 2024-04-29
|
# rust_analyzer_version: 2024-04-29
|
||||||
rust_analyzer_version: package
|
rust_analyzer_version: package
|
||||||
|
@ -4,6 +4,13 @@
|
|||||||
- mixertui
|
- mixertui
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Install packages
|
||||||
|
when: install_graphics
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- pavucontrol
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Configure sysctls
|
- name: Configure sysctls
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
when: sound_default_unit is defined
|
when: sound_default_unit is defined
|
||||||
@ -18,15 +25,12 @@
|
|||||||
- name: hw.snd.default_unit
|
- name: hw.snd.default_unit
|
||||||
value: "{{ sound_default_unit }}"
|
value: "{{ sound_default_unit }}"
|
||||||
|
|
||||||
- name: Configure sysctls
|
- name: Install loader.conf
|
||||||
sysctl:
|
copy:
|
||||||
name: "{{ item.name }}"
|
src: "files/{{ item }}_loader.conf"
|
||||||
value: "{{ item.value }}"
|
dest: "/boot/loader.conf.d/{{ item }}.conf"
|
||||||
state: present
|
mode: 0644
|
||||||
sysctl_file: "/etc/sysctl.conf.local"
|
owner: root
|
||||||
|
group: wheel
|
||||||
loop:
|
loop:
|
||||||
- name: hw.snd.verbose
|
- realtime_priority
|
||||||
value: "2"
|
|
||||||
|
|
||||||
- include_tasks: "tasks/freebsd_{{sound_system}}.yaml"
|
|
||||||
when: sound_system is defined
|
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
# Jack users must be added to the realtime group.
|
|
||||||
# Also set memorylocked to 128M in login.conf
|
|
||||||
# D-bus should be enabled for auto-launching jack.
|
|
||||||
- name: Install loader.conf
|
|
||||||
copy:
|
|
||||||
src: "files/{{ item }}_loader.conf"
|
|
||||||
dest: "/boot/loader.conf.d/{{ item }}.conf"
|
|
||||||
mode: 0644
|
|
||||||
owner: root
|
|
||||||
group: wheel
|
|
||||||
loop:
|
|
||||||
- realtime_priority
|
|
||||||
|
|
||||||
- name: Install packages
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- jackit
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Install packages
|
|
||||||
when: install_graphics
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- qjackctl
|
|
||||||
state: present
|
|
||||||
|
|
||||||
# hw.snd.default_auto=0 # (2)
|
|
||||||
# hw.snd.default_unit=1 # (3)
|
|
||||||
|
|
||||||
# hw.usb.uaudio.buffer_ms="2"
|
|
||||||
|
|
||||||
# hw.snd.latency=0
|
|
||||||
# hw.snd.latency_profile=0
|
|
||||||
|
|
||||||
# Hurts battery:
|
|
||||||
# kern.timecounter.alloweddeviation=0
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
- name: Install packages
|
|
||||||
when: install_graphics
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- pavucontrol
|
|
||||||
state: present
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
ConditionACPower=true
|
|
@ -61,26 +61,3 @@
|
|||||||
name: "zfs-scrub-weekly@{{ item }}.timer"
|
name: "zfs-scrub-weekly@{{ item }}.timer"
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
loop: "{{ periodic_scrub_pools }}"
|
loop: "{{ periodic_scrub_pools }}"
|
||||||
|
|
||||||
- name: Create directories
|
|
||||||
when: periodic_scrub_pools is defined
|
|
||||||
file:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: directory
|
|
||||||
mode: 0755
|
|
||||||
owner: root
|
|
||||||
group: wheel # Normally it is "root"
|
|
||||||
loop:
|
|
||||||
- /etc/systemd/system/zfs-scrub-weekly@.timer.d
|
|
||||||
|
|
||||||
- name: Install Configuration
|
|
||||||
when: periodic_scrub_pools is defined
|
|
||||||
copy:
|
|
||||||
src: "files/{{ item.src }}"
|
|
||||||
dest: "{{ item.dest }}"
|
|
||||||
mode: 0644
|
|
||||||
owner: root
|
|
||||||
group: wheel # Normally it is "root"
|
|
||||||
loop:
|
|
||||||
- src: linux_scrub_when_plugged_in.conf
|
|
||||||
dest: /etc/systemd/system/zfs-scrub-weekly@.timer.d/override.conf
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user