Skip to content

Commit

Permalink
feat: system-wide configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
wroyca committed Sep 1, 2024
1 parent 74671a8 commit af3b09a
Show file tree
Hide file tree
Showing 13 changed files with 137 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .chezmoiignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Houses workflows, issue templates, pull request templates, funding
# information, and some other files specific to the repository.
#
.github/

# System-wide configuration files.
#
.etc/
12 changes: 12 additions & 0 deletions .chezmoiscripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Source state attributes

The following prefixes and suffixes are special, and are collectively referred to as "attributes":

| Prefix | Effect |
|-----------|-------------------------------------------------------------------------------------|
| after_ | Run script after updating the destination |
| before_ | Run script before updating the destination |
| modify_ | Treat the contents as a script that modifies an existing file |
| once_ | Only run the script if its contents have not been run before |
| onchange_ | Only run the script if its contents have not been run before with the same filename |
| run_ | Treat the contents as a script to run |
3 changes: 3 additions & 0 deletions .chezmoiscripts/before/run_once_before_00-setup-etc.sh.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /usr/bin/env bash

sudo cp -rf {{ .chezmoi.sourceDir }}/.etc /etc
15 changes: 15 additions & 0 deletions .chezmoiscripts/before/run_once_before_01-setup.sh.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#! /usr/bin/env bash

sudo dnf upgrade -y
sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-"$(rpm -E %fedora)".noarch.rpm
sudo dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-"$(rpm -E %fedora)".noarch.rpm

[[systemd-detect-virt >/dev/null]] && return 0

sudo dnf install -y akmod-nvidia
sudo dnf install -y xorg-x11-drv-nvidia-cuda
sudo dnf install -y intel-media-driver
sudo dnf install -y libva-nvidia-driver

sudo dnf group install -y
multimedia
1 change: 1 addition & 0 deletions .chezmoiversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.51.0
18 changes: 18 additions & 0 deletions .etc/bluetooth/main.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[General]
# Permanently enables the Fast Connectable setting for adapters that support
# it. When this setting is enabled, other devices can connect to us more
# quickly. The trade-off is an increase in power consumption.
#
FastConnectable=true

# Enables D-Bus experimental interfaces. For example, enabling these interfaces
# currently allows reporting the battery level of older headsets.
#
Experimental=true

# Enables bluez experimental kernel interfaces.
#
# https://github.com/bluez/bluez/blob/a3f9970f7a8b62b426e7a00303ddb66acb79aadd/src/main.c#L708
# https://github.com/bluez/bluez/blob/a3f9970f7a8b62b426e7a00303ddb66acb79aadd/src/shared/util.c#L1602
#
KernelExperimental=true
28 changes: 28 additions & 0 deletions .etc/dnf/dnf.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[main]
# If enabled, DNF will continue running and disable any repository that
# couldn't be synchronized for any reason. This option does not affect the
# skipping of unavailable packages after dependency resolution. To check the
# inaccessibility of a repository, use this in combination with the refresh
# command-line option. The default value is False.
#
skip_if_unavailable=True

# If enabled, a metric is used to find the fastest available mirror, overriding
# the order specified by the mirrorlist or metalink file. These files are often
# dynamically generated by the server to offer the best download speeds, but
# enabling fastestmirror will override this behavior. The default value is
# False.
#
fastestmirror=True

# This sets the low-speed threshold in bytes per second. If the server sends
# data at a rate equal to or slower than this value for at least the duration
# specified by the timeout option, DNF will abort the connection. The default
# value is 1000 bytes per second. Valid units are 'k', 'M', and 'G'.
#
minrate=5M

# Specifies the maximum number of simultaneous package downloads. The default
# value is 3, with a maximum of 20.
#
max_parallel_downloads=20
9 changes: 9 additions & 0 deletions .etc/libinput/local-overrides.quirks
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# The MX Master 3 is as a high-resolution scrolling device, but there is an
# issue with libinput where it continues to transmit high-resolution events
# when the device is in ratcheting mode.
#
[Logitech MX Master 3]
MatchVendor=0x46D
MatchProduct=0x4082
ModelInvertHorizontalScrolling=1
AttrEventCode=-REL_WHEEL_HI_RES;-REL_HWHEEL_HI_RES;
9 changes: 9 additions & 0 deletions .etc/yum.repos.d/firefoxpwa.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[firefoxpwa]
name=FirefoxPWA
baseurl=https://packagecloud.io/filips/FirefoxPWA/rpm_any/rpm_any/$basearch
gpgcheck=0
repo_gpgcheck=1
gpgkey=https://packagecloud.io/filips/FirefoxPWA/gpgkey
enabled=1
enabled_metadata=1
metadata_expire=300
10 changes: 10 additions & 0 deletions .etc/yum.repos.d/mutter-patched.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[mutter-patched]
name=GNOME's Dynamic Triple Buffering
type=rpm-md
skip_if_unavailable=True
baseurl=https://download.copr.fedorainfracloud.org/results/trixieua/mutter-patched/fedora-$releasever-$basearch/
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/trixieua/mutter-patched/pubkey.gpg
enabled=1
enabled_metadata=1
metadata_expire=300
8 changes: 8 additions & 0 deletions .etc/yum.repos.d/scrcpy.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[scrcpy]
name=Scrcpy
baseurl=https://download.copr.fedorainfracloud.org/results/zeno/scrcpy/fedora-$releasever-$basearch/
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/zeno/scrcpy/pubkey.gpg
enabled=1
enabled_metadata=1
metadata_expire=300
File renamed without changes.
16 changes: 16 additions & 0 deletions .github/workflows/fedora.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Fedora Workstation

on:
workflow_dispatch:
push:
branches:
- ergodox

jobs:
chezmoi:
runs-on: ubuntu-latest
container: fedora:latest
steps:
- uses: actions/checkout@v4
- run: |
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --one-shot wroyca

0 comments on commit af3b09a

Please sign in to comment.