This commit is contained in:
teldra 2022-02-08 19:53:21 +01:00
parent 30f05823e0
commit 7fe80823b7
12 changed files with 102 additions and 35 deletions

View File

@ -1,5 +1,6 @@
packages() {
addpkg base-system lvm2 cryptsetup htop wireguard-tools sudo neovim nano xtools btrbk cronie git ntp socklog-void
addpkg base-system sudo void-repo-multilib-nonfree void-repo-nonfree lvm2 cronie socklog-void ntp xtools wireguard-tools gnupg progress pwgen net-tools ncdu nmap mtr bind-utils iotop hdparm smartmontools htop git neovim btrbk croc grub-btrfs nano mbuffer cryptsetup psmisc pinentry-tty
ignorepkg nvi
}
config() {
@ -21,10 +22,8 @@ echo "KEYMAP=${L2}" > /etc/vconsole.conf
xbps-reconfigure -f glibc-locales
enable_service cronie isc-ntpd udevd socklog-unix nanoklogd
enable_service acpid cronie socklog-unix nanoklogd uuidd agetty-tty1 agetty-tty2 agetty-tty3 agetty-tty4 isc-ntpd udevd
service_disable agetty-tty6 agetty-tty5
cat <<EOF > /etc/fstab
tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-root / btrfs defaults,subvol=rootfs 0 0

View File

@ -4,23 +4,6 @@ err() {
exit 1
}
input_old() {
local input
local found="0"
echo "$1 $2"
read input
for i in $2; do
if [ "$i" == "$input" ]; then
found=1
fi
done
if [ "$found" == "0" ]; then
err "$input: $3"
return 1
fi
output="$input"
}
header() {
if [ "$DEBUG" ]; then
echo please enter enter
@ -44,6 +27,13 @@ enable_service() {
done
}
disable_service() {
for i in $@; do
rm -rf /etc/runit/runsvdir/default/${i}
rm -rf /var/service/${i}
done
}
reset() {
if [ "$1" == "config" ]; then
function config() { :; }
@ -142,4 +132,15 @@ readin() {
reset packages
cp ./etc/${WHICH}/$output $tmp_target
fi
}
}
ignorepkg() {
local input=( ${@} )
for i in $(seq 0 "$(( ${#input[@]} - 1 ))"); do
touch "${target}"/etc/xbps.d/10-ignore-pkg.conf
if ! grep -q "${i}" "${target}"/etc/xbps.d/10-ignore-pkg.conf; then
echo "ignorepkg=${i}" >> "${target}"/etc/xbps.d/10-ignore-pkg.conf
fi
done
}

View File

@ -1,3 +1,3 @@
packages() {
X11_MODULE="mesa-vulkan-radeon xf86-video-amdgpu mesa-vaapi mesa-vdpau zsh"
addpkg mesa-vulkan-radeon xf86-video-amdgpu mesa-vaapi mesa-vdpau zsh
}

View File

@ -1,3 +1,3 @@
packages() {
X11_MODULE="mesa-vulkan-intel xf86-video-intel intel-video-accel"
addpkg mesa-vulkan-intel xf86-video-intel intel-video-accel
}

View File

@ -1,3 +1,3 @@
packages() {
X11_MODULE="nvidia"
addpkg nvidia
}

View File

@ -4,4 +4,5 @@ packages() {
config() {
enable_service dbus NetworkManager
disable_service dhcpcd
}

View File

@ -1,3 +1,7 @@
packages() {
addpkg "cups"
addpkg cups cups-filters gutenprint foomatic-db
}
config() {
service_enable cupsd
}

View File

@ -0,0 +1,32 @@
packages() {
email=thunderbird-i18n-de
terminal=gnome-terminal
imageviewer=eog
pdf=evince
filemanager=nautilus
archiver=file-roller
screenshot=gnome-screenshot
calc=gnome-calculator
pinentry=pinentry-gnome
keyring=gnome-keyring
gpg=seahorse
policykit=polkit-gnome
sshaskpass=gnome-ssh-askpass
partmanager=partitionmanager
dm=gdm
de=gnome
misc=""
need_xserver=1
need_gfx=1
need_sound=1
}
config() {
enable_service dbus gdm
if ! [ "$LANGUAGE" == "en" ]; then
echo "export LANG=${L1}.UTF-8" > /etc/sv/gdm/conf
fi
}

View File

@ -1,10 +1,30 @@
packages() {
addpkg sddm kde5 konsole dolphin kdeconnect okular spectacle kcalc kleopatra gwenview ark filelight
email=kmail
terminal=konsole
imageviewer=gwenview
pdf=okular
filemanager=dolphin
archiver=ark
screenshot=spectacle
calc=kcalc
pinentry=pinentry-qt
keyring=kwalletmanager
gpg=kleopatra
policykit=polkit-kde-agent
sshaskpass=ksshaskpass
partmanager=partitionmanager
dm=sddm
de=kde5
misc="kdegraphics-thumbnailers ffmpegthumbs print-manager plasma-browser-integration kdeconnect"
need_xserver=1
need_gfx=1
need_sound=1
}
config() {
enable_service "sddm"
enable_service dbus sddm
if ! [ "$LANGUAGE" == "en" ]; then
echo "export LANG=${L1}.UTF-8" > /etc/sv/sddm/conf
fi

View File

@ -1,9 +1,9 @@
packages() {
addpkg pipewire alsa-utils
addpkg pipewire alsa-pipewire libjack-pipewire
}
config() {
enable_service alsa
enable_service
echo "[Desktop Entry]" > /etc/xdg/autostart/pipewire-session.desktop
echo "Version=1.0" >> /etc/xdg/autostart/pipewire-session.desktop
@ -35,4 +35,5 @@ config() {
echo "X-GNOME-Autostart-Phase=Initialization" >> /etc/xdg/autostart/pipewire.desktop
echo "X-KDE-autostart-phase=1" >> /etc/xdg/autostart/pipewire.desktop
echo "/usr/lib/pipewire-0.3/jack" > /etc/ld.so.conf.d/zpipewire-jack.conf
}

View File

@ -1,7 +1,7 @@
packages() {
addpkg pulseaudio alsa-utils
addpkg alsa-plugins-pulseaudio pulseaudio
}
config() {
enable_service alsa
enable_service
}

View File

@ -1,14 +1,23 @@
packages() {
addpkg xorg-minimal xorg-apps xorg-fonts dbus "${X11_MODULE}"
addpkg xorg-minimal xorg-apps xorg-fonts dbus noto-fonts-emoji mesa-dri vulkan-loader
addpkg "firefox-i18n-${LANGUAGE}"
addpkg libreoffice-writer libreoffice-calc "libreoffice-i18n-${LANGUAGE}"
addpkg "thunderbird-i18n-${LANGUAGE}"
addpkg element-desktop
addpkg vlc yt-dlp
addpkg alsa-utils
addpkg "aspell-${LANGUAGE}" gspell
addpkg ${email} ${terminal} ${imageviewer} ${pdf} ${filemanager} ${archiver} ${screenshot} ${calc} ${pinentry} ${keyring} ${gpg} ${policykit} ${sshaskpass} ${partmanager} ${dm} ${de} ${misc}
ignorepkg font-adobe-75dpi font-adobe-100dpi
}
config() {
enable_service dbus
enable_service dbus alsa
disable_service acpid
ln -s /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d/
if [ "$LANGUAGE" == "de" ]; then