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

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
pkg/
src/
*.pkg.tar.zst

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

124
arch/PKGBUILD Normal file
View file

@ -0,0 +1,124 @@
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
# shellcheck disable=SC2034
pkgname=serguzim-system
pkgver=1
pkgrel=1
epoch=
pkgdesc=""
arch=("any")
url="https://git.serguzim.me/serguzim/system"
license=("unknown")
groups=()
depends=(
### BASE
"base"
"linux" "linux-firmware" "linux-headers"
"man-db" "man-pages" "usbutils" "sudo"
"mlocate" "gvim" "neovim"
"exfat-utils" "logrotate"
"zsh" "htop" "git" "wireguard-tools"
"cups" "cups-pdf"
"docker" "docker-buildx" "docker-compose"
"xdg-user-dirs"
### BASE-DEVEL
"archlinux-keyring" "autoconf" "automake" "binutils" "bison" "debugedit"
"fakeroot" "file" "findutils" "flex" "gawk" "gcc" "gettext" "grep" "groff"
"gzip" "libtool" "m4" "make" "pacman" "patch" "pkgconf" "sed" "sudo"
"texinfo" "which"
### OTHER PACKAGE MANAGERS
"nix" "flatpak"
### ARCH UTILS
"archlinux-contrib" "pacman-contrib"
"arch-audit"
"reflector" # Update arch mirrorlist
"libudev0-shim" # Arch compatibility library
### FONTS
"noto-fonts-emoji" "noto-fonts-extra" "unicode-emoji"
"ttf-dejavu" "ttf-droid" "ttf-liberation" "ttf-opensans" "ttf-roboto"
"gnu-free-fonts"
### XORG
"xorg-server" "xorg-server-xvfb" "xorg-xfd" "xorg-xinit"
"xorg-xinput" "xorg-xlsclients" "xorg-xmodmap"
"vulkan-tools"
"mesa-vdpau" "libva-mesa-driver" "opencl-mesa"
"numlockx"
### APPLICATIONS
"sddm"
"bemenu" "bemenu-x11" "j4-dmenu-desktop"
"bspwm"
"sxhkd" "polybar"
"pipewire-pulse" "vorbis-tools" "alsa-utils"
"gst-plugins-good" "gst-plugins-good" "gst-plugins-bad" "gst-plugins-ugly"
"polkit-gnome"
"alacritty"
"lxappearance" "qt5ct" "gnome-icon-theme-extras" "gnome-themes-extra"
"thunar" "tumbler" "ffmpegthumbnailer"
"gtkspell"
"thunderbird" "virtualbox"
"qutebrowser" "python-adblock" "python-pynacl" "pdfjs-legacy"
"ungoogled-chromium" "firefox"
"chromium-widevine" "qt5-webengine-widevine"
"kdeconnect" "keepassxc" "syncthing"
)
source=(
"boot_loader_entries_arch.conf"
"boot_loader_loader.conf"
"etc_locale.conf"
"etc_pacman.conf"
"etc_pacman.d_default.conf"
"etc_pacman.d_hooks_95-systemd-boot.hook"
"etc_sddm.conf.d_autologin.conf"
"etc_sddm.conf.d_general.conf"
"etc_vconsole.conf"
"etc_X11_xorg.conf.d_50-mouse-acceleration.conf"
)
sha256sums=(
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
)
backup=(
"boot/loader/loader.conf"
)
_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 "boot/loader/entries/arch.conf" "755"
_install "boot/loader/loader.conf" "755"
_install "etc/locale.conf"
_install "etc/pacman.conf"
_install "etc/pacman.d/default.conf"
_install "etc/pacman.d/hooks/95-systemd-boot.hook"
_install "etc/sddm.conf.d/autologin.conf"
_install "etc/sddm.conf.d/general.conf"
_install "etc/vconsole.conf"
_install "etc/X11/xorg.conf.d/50-mouse-acceleration.conf"
}
# vim: ft=sh

View file

@ -0,0 +1,5 @@
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root="/dev/nvme0n1p3" rw quiet splash acpi_enforce_resources=lax mitigations=off

3
arch/boot_loader_loader.conf Executable file
View file

@ -0,0 +1,3 @@
timeout 2
default arch.conf
console-mode keep

View file

@ -0,0 +1,7 @@
Section "InputClass"
Identifier "libinput pointer catchall"
Driver "libinput"
MatchIsPointer "yes"
Option "AccelProfile" "flat"
Option "AccelSpeed" "0"
EndSection

1
arch/etc_locale.conf Normal file
View file

@ -0,0 +1 @@
LANG=en_US.UTF-8

1
arch/etc_pacman.conf Normal file
View file

@ -0,0 +1 @@
Include = /etc/pacman.d/default.conf

View file

@ -0,0 +1,31 @@
[options]
HoldPkg = pacman glibc
Architecture = auto
NoExtract = etc/pacman.d/mirrorlist
UseSyslog
Color
CheckSpace
VerbosePkgLists
ParallelDownloads = 5
ILoveCandy
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
[home_ungoogled_chromium_Arch]
SigLevel = Required TrustAll
Server = https://download.opensuse.org/repositories/home:/ungoogled_chromium/Arch/$arch

View file

@ -0,0 +1,9 @@
[Trigger]
Type = Package
Operation = Upgrade
Target = systemd
[Action]
Description = Gracefully upgrading systemd-boot...
When = PostTransaction
Exec = /usr/bin/systemctl restart systemd-boot-update.service

View file

@ -0,0 +1,3 @@
[Autologin]
User=tobias
Session=bspwm

View file

@ -0,0 +1,2 @@
[General]
Numlock=on

1
arch/etc_vconsole.conf Normal file
View file

@ -0,0 +1 @@
KEYMAP=de