-
Notifications
You must be signed in to change notification settings - Fork 0
/
vars.conf.def.sh
executable file
·127 lines (102 loc) · 4.02 KB
/
vars.conf.def.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#!/bin/sh
[ "$REPOHUB" = '' ] && err '$REPOHUB variable not set. This script is not ment to be run by the user.' && exit 1
set -a
PORTABLE=0
KERNEL='linux'
# User configuration
USER1='krypek'
USER_GROUP='krypek'
USER_HOME="/home/$USER1"
FAKE_USER_HOME="$USER_HOME/home"
USER_PASSWORD=123
ROOT_PASSWORD=123
INSTALL_DOTFILES=1
INSTALL_PRIVATE_DOTFILES=1
PRIVATE_DOTFILES_PASSWORD='123'
REGION='Europe'
CITY='Warsaw'
HOSTNAME1="$USER1$VARIANT_NAME"
LANG='en_US.UTF-8'
# Packages
LIB32=1
PACMAN_ARGUMENTS='--color=always --noconfirm --needed'
PARU_ARGUMENTS='--noremovemake --skipreview --noupgrademenu'
# If ALL_DRIVERS is set to 1, GPU and CPU options are ignored
ALL_DRIVERS=1
if [ "$ALL_DRIVERS" = "0" ]; then
# Options: amd ati intel nvidia NOTE: the only one tested is the amd one
# The nvidia driver is the open source one
GPU='amd'
# Options: amd intel
CPU='amd'
fi
COPY_OFFLINE_PACKAGES=0
PACKAGE_GROUPS=""
PACKAGE_GROUPS="$PACKAGE_GROUPS base" # packages installing pre-chroot
PACKAGE_GROUPS="$PACKAGE_GROUPS bare" # bare minimum to get into bash shell
PACKAGE_GROUPS="$PACKAGE_GROUPS drivers" # cpu ucode and gpu drivers
PACKAGE_GROUPS="$PACKAGE_GROUPS basic" # make the shell usable and preety
PACKAGE_GROUPS="$PACKAGE_GROUPS gui" # platform independent gui apps
PACKAGE_GROUPS="$PACKAGE_GROUPS audio" # required for audio to work
PACKAGE_GROUPS="$PACKAGE_GROUPS media" # ffmpeg, vlc, youtube-dl, yt-dlp
PACKAGE_GROUPS="$PACKAGE_GROUPS browsers" # dialect, firefox, librewolf, ungoogled-chromium
PACKAGE_GROUPS="$PACKAGE_GROUPS office" # libreoffice-fresh
PACKAGE_GROUPS="$PACKAGE_GROUPS X11" # X11 server and utilities like screen locker
PACKAGE_GROUPS="$PACKAGE_GROUPS awesome" # awesomewm
PACKAGE_GROUPS="$PACKAGE_GROUPS wayland" # wayland base and utilities like screen locker
PACKAGE_GROUPS="$PACKAGE_GROUPS dwl" # dwl (wayland wm)
PACKAGE_GROUPS="$PACKAGE_GROUPS coding" # java, rust, eclipse-java (IDE), git-filter-repo
PACKAGE_GROUPS="$PACKAGE_GROUPS fstools" # Filesystems, ventoy, testdisk
PACKAGE_GROUPS="$PACKAGE_GROUPS gaming" # steam. lib32 libraries, lutris, wine, some drivers, java
PACKAGE_GROUPS="$PACKAGE_GROUPS security" # cpu-x, keepassxc, libfido2, libu2f-server, nmap, openbsd-netcat, yubikey-manager-qt
PACKAGE_GROUPS="$PACKAGE_GROUPS social" # emojis, discord
PACKAGE_GROUPS="$PACKAGE_GROUPS misc" # printing (cups)
PACKAGE_GROUPS="$PACKAGE_GROUPS bluetooth" # blueman, bluez, bluetooth support at initcpio
PACKAGE_GROUPS="$PACKAGE_GROUPS virt" # QEMU
PACKAGE_GROUPS="$PACKAGE_GROUPS android" # adb
#PACKAGE_GROUPS="$PACKAGE_GROUPS baltie" # https://sgpsys.com/en/whatisbaltie.asp
# Bootloader
BOOTLOADER_ID="$VARIANT_NAME"
BOOT_PART="${DISK}1"
BOOT_SIZE='500M'
# Encryption
# 0 -> disable 1 -> enable
ENCRYPT=1
if [ "$ENCRYPT" = '1' ]; then
CRYPT_PART="${DISK}2"
# None means all remaining space
CRYPT_SIZE=''
LUKS_PASSWORD=123
CRYPT_NAME="$VARIANT"
CRYPT_FILE="/dev/mapper/$CRYPT_NAME"
KEY_SIZE=256
ITER_TIME=3000
HASH='sha256'
LUKSFORMAT_ARUGMNETS="--key-size $KEY_SIZE --hash $HASH --iter-time $ITER_TIME"
else
LVM_PART="${DISK}2"
# None means all remaining space
LVM_SIZE=''
fi
# LVM
ENABLE_SWAP=1
SWAP_SIZE='16G'
ROOT_SIZE='50G'
# user home takes the rest
LVM_NAME="${VARIANT}_lvm"
LVM_GROUP_NAME="$VARIANT"
LVM_DIR="/dev/$LVM_GROUP_NAME"
# File systems
BOOT_DIR_ALONE='/boot'
BOOT_DIR=${INSTALL_DIR}${BOOT_DIR_ALONE}
BOOT_FORMAT_COMMAND="mkfs.fat -n Boot $BOOT_PART"
BOOT_FSTAB_ARGS="$BOOT_DIR_ALONE vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2"
ROOT_FORMAT_COMMAND="mkfs.btrfs -f -L root $LVM_DIR/root"
ROOT_FSTAB_ARGS="/ btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0"
HOME_FORMAT_COMMAND="mkfs.btrfs -f -L home $LVM_DIR/home"
HOME_FSTAB_ARGS="$USER_HOME btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/"
# Installer
# Don't ask for confirmation
YOLO=1
AUTO_REBOOT=0
PAUSE_AFTER_DONE=1