Add arch systems

This commit is contained in:
Tobias Reisinger 2022-12-20 18:34:26 +01:00
commit 5fe1d603ad
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
18 changed files with 301 additions and 0 deletions

55
arch-portalo/PKGBUILD Normal file
View file

@ -0,0 +1,55 @@
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
# shellcheck disable=SC2034
pkgname=serguzim-system-portalo
pkgver=1
pkgrel=1
epoch=
pkgdesc=""
arch=("any")
url="https://git.serguzim.me/serguzim/system"
license=("unknown")
groups=()
depends=(
"intel-ucode"
"amdgpu-fan"
"xf86-video-amdgpu"
"vulkan-radeon"
)
source=(
"etc_fstab"
"etc_hostname"
"etc_systemd_network_20-wired.network"
"etc_systemd_system_ckb-next-daemon.service"
"etc_udev_rules.d_42-logitech-unify-permissions.rules"
)
sha256sums=(
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
)
backup=()
_sed_path() {
echo "$1" | sed -e "s/\//_/g"
}
_install() {
temp_pkg=$1
temp_src=$(_sed_path "$temp_pkg")
# shellcheck disable=SC2154
install "-Dm${2:-644}" "${srcdir}/${temp_src}" "${pkgdir}/${temp_pkg}"
}
package() {
_install "etc/fstab"
_install "etc/hostname"
_install "etc/systemd/network/20-wired.network"
_install "etc/systemd/system/ckb-next-daemon.service"
_install "etc/udev/rules.d/42-logitech-unify-permissions.rules"
}
# vim: ft=sh

7
arch-portalo/etc_fstab Normal file
View file

@ -0,0 +1,7 @@
LABEL=arch / ext4 rw,relatime 0 1
LABEL=BOOT /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
LABEL=games /mnt/games ext4 rw,relatime 0 2
LABEL=home /home ext4 rw,relatime 0 2

View file

@ -0,0 +1 @@
portalo

View file

@ -0,0 +1,5 @@
[Match]
Name=enp0s31f6
[Network]
DHCP=yes

View file

@ -0,0 +1,11 @@
[Unit]
Description=Daemon for ckb-next
[Service]
# You must install that file manually
# sudo ln -sf "/home/$(whoami)/.nix-profile/bin/ckb-next-daemon" "/usr/local/bin/"
ExecStart=/usr/local/bin/ckb-next-daemon
Restart=on-failure
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,32 @@
# This rule was added by Solaar.
#
# Allows non-root users to have raw access to Logitech devices.
# Allowing users to write to the device is potentially dangerous
# because they could perform firmware updates.
ACTION != "add", GOTO="solaar_end"
SUBSYSTEM != "hidraw", GOTO="solaar_end"
# USB-connected Logitech receivers and devices
ATTRS{idVendor}=="046d", GOTO="solaar_apply"
# Lenovo nano receiver
ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6042", GOTO="solaar_apply"
# Bluetooth-connected Logitech devices
KERNELS == "0005:046D:*", GOTO="solaar_apply"
GOTO="solaar_end"
LABEL="solaar_apply"
# Allow any seated user to access the receiver.
# uaccess: modern ACL-enabled udev
# udev-acl: for Ubuntu 12.10 and older
TAG+="uaccess", TAG+="udev-acl"
# Grant members of the "plugdev" group access to receiver (useful for SSH users)
#MODE="0660", GROUP="plugdev"
LABEL="solaar_end"
# vim: ft=udevrules