commit 5fe1d603ad53df98e72ae245176ed4785d741e0c Author: Tobias Reisinger Date: Tue Dec 20 18:34:26 2022 +0100 Add arch systems diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b32f0f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pkg/ +src/ +*.pkg.tar.zst diff --git a/arch-portalo/PKGBUILD b/arch-portalo/PKGBUILD new file mode 100644 index 0000000..f1f7c88 --- /dev/null +++ b/arch-portalo/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Tobias Reisinger +# 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 diff --git a/arch-portalo/etc_fstab b/arch-portalo/etc_fstab new file mode 100644 index 0000000..6a8df77 --- /dev/null +++ b/arch-portalo/etc_fstab @@ -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 diff --git a/arch-portalo/etc_hostname b/arch-portalo/etc_hostname new file mode 100644 index 0000000..4af1ba4 --- /dev/null +++ b/arch-portalo/etc_hostname @@ -0,0 +1 @@ +portalo diff --git a/arch-portalo/etc_systemd_network_20-wired.network b/arch-portalo/etc_systemd_network_20-wired.network new file mode 100644 index 0000000..30a36df --- /dev/null +++ b/arch-portalo/etc_systemd_network_20-wired.network @@ -0,0 +1,5 @@ +[Match] +Name=enp0s31f6 + +[Network] +DHCP=yes diff --git a/arch-portalo/etc_systemd_system_ckb-next-daemon.service b/arch-portalo/etc_systemd_system_ckb-next-daemon.service new file mode 100644 index 0000000..cbc4d16 --- /dev/null +++ b/arch-portalo/etc_systemd_system_ckb-next-daemon.service @@ -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 diff --git a/arch-portalo/etc_udev_rules.d_42-logitech-unify-permissions.rules b/arch-portalo/etc_udev_rules.d_42-logitech-unify-permissions.rules new file mode 100644 index 0000000..27a65cc --- /dev/null +++ b/arch-portalo/etc_udev_rules.d_42-logitech-unify-permissions.rules @@ -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 diff --git a/arch/PKGBUILD b/arch/PKGBUILD new file mode 100644 index 0000000..a87d01e --- /dev/null +++ b/arch/PKGBUILD @@ -0,0 +1,124 @@ +# Maintainer: Tobias Reisinger +# 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 diff --git a/arch/boot_loader_entries_arch.conf b/arch/boot_loader_entries_arch.conf new file mode 100755 index 0000000..c4a1971 --- /dev/null +++ b/arch/boot_loader_entries_arch.conf @@ -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 diff --git a/arch/boot_loader_loader.conf b/arch/boot_loader_loader.conf new file mode 100755 index 0000000..caa1651 --- /dev/null +++ b/arch/boot_loader_loader.conf @@ -0,0 +1,3 @@ +timeout 2 +default arch.conf +console-mode keep diff --git a/arch/etc_X11_xorg.conf.d_50-mouse-acceleration.conf b/arch/etc_X11_xorg.conf.d_50-mouse-acceleration.conf new file mode 100644 index 0000000..6544827 --- /dev/null +++ b/arch/etc_X11_xorg.conf.d_50-mouse-acceleration.conf @@ -0,0 +1,7 @@ +Section "InputClass" + Identifier "libinput pointer catchall" + Driver "libinput" + MatchIsPointer "yes" + Option "AccelProfile" "flat" + Option "AccelSpeed" "0" +EndSection diff --git a/arch/etc_locale.conf b/arch/etc_locale.conf new file mode 100644 index 0000000..01ec548 --- /dev/null +++ b/arch/etc_locale.conf @@ -0,0 +1 @@ +LANG=en_US.UTF-8 diff --git a/arch/etc_pacman.conf b/arch/etc_pacman.conf new file mode 100644 index 0000000..b717718 --- /dev/null +++ b/arch/etc_pacman.conf @@ -0,0 +1 @@ +Include = /etc/pacman.d/default.conf diff --git a/arch/etc_pacman.d_default.conf b/arch/etc_pacman.d_default.conf new file mode 100644 index 0000000..aec70d2 --- /dev/null +++ b/arch/etc_pacman.d_default.conf @@ -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 diff --git a/arch/etc_pacman.d_hooks_95-systemd-boot.hook b/arch/etc_pacman.d_hooks_95-systemd-boot.hook new file mode 100644 index 0000000..d65c027 --- /dev/null +++ b/arch/etc_pacman.d_hooks_95-systemd-boot.hook @@ -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 diff --git a/arch/etc_sddm.conf.d_autologin.conf b/arch/etc_sddm.conf.d_autologin.conf new file mode 100644 index 0000000..0e0aff4 --- /dev/null +++ b/arch/etc_sddm.conf.d_autologin.conf @@ -0,0 +1,3 @@ +[Autologin] +User=tobias +Session=bspwm diff --git a/arch/etc_sddm.conf.d_general.conf b/arch/etc_sddm.conf.d_general.conf new file mode 100644 index 0000000..6ae465e --- /dev/null +++ b/arch/etc_sddm.conf.d_general.conf @@ -0,0 +1,2 @@ +[General] +Numlock=on diff --git a/arch/etc_vconsole.conf b/arch/etc_vconsole.conf new file mode 100644 index 0000000..7b977c5 --- /dev/null +++ b/arch/etc_vconsole.conf @@ -0,0 +1 @@ +KEYMAP=de