<filename>installer/config.py

# MIT License
# 
# Copyright (c) 2019 <NAME>
# 
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

# Config file containing default configurations in one place
# You can still override these settings

# Command for installing software
INSTALLCOMMAND = "pacman -Syu --noconfirm"


# IP to check if network is working
IP = "8.8.8.8"

# command to interactivaly connect to wifi
WIFI_CONNECT_COMMAND = "wifi-menu"

# command to connect to wifi based on a password first {} is the SSID the second {} is the password
WIFI_CONNECT_COMMAND_WITH_PASSWORD = "nmcli device wifi connect '{}' password '{}'"

# Default shell for new users
DEFAULT_SHELL = "/bin/bash"

# Command to add users| first {} is the encrypted password, second {} are all the groups, third {} is the default shell, fourth {} is the username
USERADD = "useradd -m -p {} -g users -G {} -s {} {}"

# Default groups a new user is in
GROUPS = ["audio", "lp", "optical", "storage",
          "video", "wheel", "games", "power"]

# command to generate a new users home dir
USER_HOME_BUILDER = "mkhomedir_helper {}"

# Default mount point
MOUNTPOINT = "/mnt"


# Install command for the bootloader
BOOTLOADER_EFI = "grub-install --efi-directory /boot/efi --force {}"
BOOTLOADER_DOS = "grub-install {}"
BOOTLOADER_CONFIG = "grub-mkconfig -o /boot/grub/grub.cfg"

# default system setting
LOCALE = "en_US.UTF-8"
KEYMAP = "be-latin1"
HOSTNAME = "tos"
ROOT_PWD = "<PASSWORD>"


# chroot command
CHROOT = "arch-chroot -u {} {}"


# Logic volume/encryption
LUKS = "cryptsetup luksFormat -v -s 512 -h sha512 {} -d -"
LUKS_OPEN = "cryptsetup open {} luks_lvm -d -"
LUKS_NAME = "tos"  # the volume group name
LUKS_DEVICE = "/dev/mapper/luks_lvm"  # luks_lvm must be the same as LUKS_OPEN

# fstab generator
FSTAB = "genfstab -U -p {} > {}/etc/fstab".format(MOUNTPOINT, MOUNTPOINT)

HERESTRING = "EOF"

BOOTSTRAP = "pacstrap /mnt {} --noconfirm"

BOOTSTRAP_PACKAGES = ["base", "base-devel",
                      "efibootmgr", "vim", "dialog", "grub", "linux", "linux-firmware"]

# the kernel or kernels to install it should be a list
KERNEL = ["linux"]

<filename>installer/config.py

# MIT License
# 
# Copyright (c) 2019 <NAME>
# 
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

# Config file containing default configurations in one place
# You can still override these settings

# Command for installing software
INSTALLCOMMAND = "pacman -Syu --noconfirm"


# IP to check if network is working
IP = "8.8.8.8"

# command to interactivaly connect to wifi
WIFI_CONNECT_COMMAND = "wifi-menu"

# command to connect to wifi based on a password first {} is the SSID the second {} is the password
WIFI_CONNECT_COMMAND_WITH_PASSWORD = "nmcli device wifi connect '{}' password '{}'"

# Default shell for new users
DEFAULT_SHELL = "/bin/bash"

# Command to add users| first {} is the encrypted password, second {} are all the groups, third {} is the default shell, fourth {} is the username
USERADD = "useradd -m -p {} -g users -G {} -s {} {}"

# Default groups a new user is in
GROUPS = ["audio", "lp", "optical", "storage",
          "video", "wheel", "games", "power"]

# command to generate a new users home dir
USER_HOME_BUILDER = "mkhomedir_helper {}"

# Default mount point
MOUNTPOINT = "/mnt"


# Install command for the bootloader
BOOTLOADER_EFI = "grub-install --efi-directory /boot/efi --force {}"
BOOTLOADER_DOS = "grub-install {}"
BOOTLOADER_CONFIG = "grub-mkconfig -o /boot/grub/grub.cfg"

# default system setting
LOCALE = "en_US.UTF-8"
KEYMAP = "be-latin1"
HOSTNAME = "tos"
ROOT_PWD = "<PASSWORD>"


# chroot command
CHROOT = "arch-chroot -u {} {}"


# Logic volume/encryption
LUKS = "cryptsetup luksFormat -v -s 512 -h sha512 {} -d -"
LUKS_OPEN = "cryptsetup open {} luks_lvm -d -"
LUKS_NAME = "tos"  # the volume group name
LUKS_DEVICE = "/dev/mapper/luks_lvm"  # luks_lvm must be the same as LUKS_OPEN

# fstab generator
FSTAB = "genfstab -U -p {} > {}/etc/fstab".format(MOUNTPOINT, MOUNTPOINT)

HERESTRING = "EOF"

BOOTSTRAP = "pacstrap /mnt {} --noconfirm"

BOOTSTRAP_PACKAGES = ["base", "base-devel",
                      "efibootmgr", "vim", "dialog", "grub", "linux", "linux-firmware"]

# the kernel or kernels to install it should be a list
KERNEL = ["linux"]

# MIT License # # Copyright (c) 2019 <NAME> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # Config file containing default configurations in one place # You can still override these settings # Command for installing software # IP to check if network is working # command to interactivaly connect to wifi # command to connect to wifi based on a password first {} is the SSID the second {} is the password # Default shell for new users # Command to add users| first {} is the encrypted password, second {} are all the groups, third {} is the default shell, fourth {} is the username # Default groups a new user is in # command to generate a new users home dir # Default mount point # Install command for the bootloader # default system setting # chroot command # Logic volume/encryption # the volume group name # luks_lvm must be the same as LUKS_OPEN # fstab generator # the kernel or kernels to install it should be a list