next gen init
This commit is contained in:
parent
84872dc103
commit
a16479ee7a
40 changed files with 239 additions and 894 deletions
19
distros/alpine/pm.sh
Normal file
19
distros/alpine/pm.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
cmd="apk"
|
||||
while getopts "icru" opt; do
|
||||
case $opt in
|
||||
i)
|
||||
cmd="$cmd add"
|
||||
;;
|
||||
u)
|
||||
cmd="$cmd add"
|
||||
r)
|
||||
cmd="$cmd remove"
|
||||
;;
|
||||
c)
|
||||
cmd="$cmd info -q"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
shift $((OPTIND-1))
|
||||
|
||||
$cmd $@
|
4
distros/any/package.list
Normal file
4
distros/any/package.list
Normal file
|
@ -0,0 +1,4 @@
|
|||
neofetch
|
||||
git
|
||||
vim
|
||||
sudo
|
4
distros/any/root/etc/sudoers
Normal file
4
distros/any/root/etc/sudoers
Normal file
|
@ -0,0 +1,4 @@
|
|||
root ALL=(ALL:ALL) ALL
|
||||
%wheel ALL=(ALL:ALL) ALL
|
||||
%root ALL=(ALL:ALL) NOPASSWD: ALL
|
||||
@includedir /etc/sudoers.d
|
2
distros/arch/package.list
Normal file
2
distros/arch/package.list
Normal file
|
@ -0,0 +1,2 @@
|
|||
reflector # for scripts/00-reflector.sh
|
||||
alacritty # favourite terminal emulator
|
22
distros/arch/pm.sh
Normal file
22
distros/arch/pm.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
cmd="pacman --noconfirm"
|
||||
while getopts "icru" opt; do
|
||||
case $opt in
|
||||
i)
|
||||
cmd="$cmd -S"
|
||||
;;
|
||||
u)
|
||||
cmd="$cmd -Syyu"
|
||||
;;
|
||||
r)
|
||||
cmd="$cmd -R"
|
||||
;;
|
||||
c)
|
||||
cmd="$cmd -Q"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
shift $((OPTIND-1))
|
||||
|
||||
$cmd $@
|
31
distros/arch/root/etc/pacman.conf
Normal file
31
distros/arch/root/etc/pacman.conf
Normal file
|
@ -0,0 +1,31 @@
|
|||
[options]
|
||||
HoldPkg = pacman glibc yay
|
||||
Architecture = auto
|
||||
|
||||
Color
|
||||
CheckSpace
|
||||
ParallelDownloads = 5
|
||||
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
|
||||
#[testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
#[community-testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
#[multilib-testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[multilib]
|
||||
Include = /etc/pacman.d/mirrorlist
|
12
distros/arch/sys-scripts/00-reflector.sh
Normal file
12
distros/arch/sys-scripts/00-reflector.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Sets up fast mirrors on arch
|
||||
|
||||
if ! pacman -Q reflector; then
|
||||
echo "reflector was not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
||||
reflector -c NL -f 10 --threads 4 --save /etc/pacman.d/mirrorlist
|
||||
echo "Server = arch.neo.faulty.nl/$repo/os/$arch" >> /etc/pacman.d/mirrorlist
|
13
distros/arch/user-scripts/00-yay.sh
Normal file
13
distros/arch/user-scripts/00-yay.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Installs yay.
|
||||
|
||||
[ "$UID" = "0" ] || exit 0
|
||||
|
||||
yaytmpdir=$(mktemp -d)
|
||||
|
||||
git clone https://aur.archlinux.org/yay $yaytmpdir
|
||||
oldpwd=$(pwd)
|
||||
cd $yaytmpdir
|
||||
makepkg -si
|
||||
cd $oldpwd
|
Loading…
Add table
Add a link
Reference in a new issue