-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate.sh
More file actions
124 lines (89 loc) · 2.8 KB
/
template.sh
File metadata and controls
124 lines (89 loc) · 2.8 KB
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
#!/bin/sh
if [ -z "$3" ]; then
echo "Usage: $0 diskname hostname user"
echo "Example: bash $0 sda MyHostname MyUsername"
echo "Example: bash $0 mmcblk0 NoobzReaper neo"
echo "Example: bash $0 nvme0n1 noticemesempai kawai"
exit 1
fi
if [ "$0" == "template.sh" ]; then
echo "You shouldn't run the template as it contains many different configurations that are in conflict by nature."
echo "Copy this script somewhere else and customize it."
exit 2
fi
export user_disk="$1"
export user_hostname="$2"
export user_username="$3"
export RED='\033[0;31m'
export CYAN='\033[0;36m'
export GREEN='\033[0;32m'
export NC='\033[0m' # No Color
##
# Update liveiso keyring to ensure pacman will be able to download and install packages without signing issues
source ./modules/liveiso/keyring-update.sh
##
# Disk configuration (select only one)
source ./modules/disk/uefi/simple.sh # /boot, swap and /
# source ./modules/disk/uefi/lvm.sh # /boot, LVM[swap, root, home]
# source ./modules/disk/uefi/lvm-on-luks.sh # /boot, LUKS[LVM[swap, root, home]]
##
# Core packages
source ./modules/packages/reflector.sh
source ./modules/packages/core.sh
# source ./modules/packages/amd.sh
# source ./modules/packages/intel.sh
# source ./modules/packages/kernel.sh
# source ./modules/packages/kernel-headers.sh
# source ./modules/packages/kernel-lts.sh
# source ./modules/packages/kernel-lts-headers.sh
source ./modules/packages/kernel-zen.sh
source ./modules/packages/kernel-zen-headers.sh
##
# fstab generation
source ./modules/disk/fstab.sh
##
# Locale management
source ./modules/locales/timezones/paris.sh
source ./modules/settings/hostname.sh
source ./modules/locales/keyboards/french.sh
# Last language will be system-language
source ./modules/locales/languages/english.sh
source ./modules/locales/languages/french.sh
##
# User management
source ./modules/settings/passwd.sh
# source ./modules/settings/passwd-root.sh
##
# Additionnal packages
# source ./modules/packages/kde-minimal.sh
source ./modules/packages/kde.sh
# source ./modules/packages/gnome-minimal.sh
# source ./modules/packages/gnome.sh
source ./modules/packages/yay.sh
source ./modules/packages/zsh.sh
source ./modules/packages/extras.sh
# source ./modules/packages/vmware.sh
# source ./modules/packages/qemu.sh
# source ./modules/packages/offsec.sh
##
# Installing bootloader (select only one)
# source ./modules/bootloader/grub.sh
source ./modules/bootloader/efistub.sh
##
# Users configuration
source ./modules/settings/zsh.sh
source ./modules/settings/ohmyzsh.sh
# source ./modules/settings/sddm-autologin.sh
##
# Services
source ./modules/services/networkmanager.sh
# source ./modules/autorun/nm-hotspot.sh
# source ./modules/services/ssh.sh
source ./modules/services/fstrim.sh
##
# Un-mounting disks
source ./modules/disk/umount.sh
##
# Reboot of poweroff
reboot
# poweroff