summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config45
-rw-r--r--[-rwxr-xr-x]install.sh (renamed from install-artix.sh)44
2 files changed, 52 insertions, 37 deletions
diff --git a/config b/config
new file mode 100644
index 0000000..ebbc6dc
--- /dev/null
+++ b/config
@@ -0,0 +1,45 @@
+# -*- mode: shell-script; -*-
+# ======================================================
+# Configuration Options
+# ======================================================
+
+# Drive (e.g: /dev/sda, /dev/nvme0n1)
+drive="/dev/DRIVE"
+
+# Partitions (e.g: /dev/sda1, /dev/nvme0n1p1)
+boot="${drive}1"
+root="${drive}2"
+
+# Swap (e.g: auto, 8G, 16G)
+swap_size=auto
+
+# Boot size (e.g: 256M, 512M, 1G)
+boot_size=512M
+
+# Duel-boot (i.e. a shared BOOT partition is used)
+# Caution:
+# - DRIVE must be separate from BOOT as DRIVE will be wiped/formatted
+# - BOOT will NOT be formatted but used to install linux/bootloader
+# - BOOT partition must already be setup, e.g. partitioned/formatted
+duel_boot=false
+
+# System
+timezone=Europe/London
+locale=en_GB
+hostname=ArtixPC
+user=blake
+
+# Note that some groups provided are required for seatd to work and
+# may vary depending on your use-case; see the ArchWiki for info:
+# https://wiki.archlinux.org/title/Users_and_groups#Group_list
+user_groups=wheel,video,audio,input,seat,log
+
+# Login
+autologin=false
+
+# NOTE: encryption not currently working
+encrypt=false
+
+# Arch
+arch_support=false
+enable_aur=false
diff --git a/install-artix.sh b/install.sh
index 39ea38c..4eadbdf 100755..100644
--- a/install-artix.sh
+++ b/install.sh
@@ -1,44 +1,14 @@
#!/bin/bash
-# Installs Artix Linux With LUKS Root Encryption & BTRFS
-# See README for further details
# ======================================================
-# CONFIGURATION
+# Artix Linux Installation
+# See the README for details
# ======================================================
-# Drive
-drive="/dev/DRIVE"
-boot="${drive}1"
-root="${drive}2"
-swap_size=auto
-boot_size=512M
-
-# DUEL-BOOT (i.e. a shared boot partition is used)
-# Note:
-# - ensure BOOT & ROOT are set to the correct partitions
-# - BOOT partition will NOT be formatted, only DRIVE will be formatted
-# - boot partition must be ready to use (i.e. created/formatted)
-duel_boot=false
-
-# System
-timezone=Europe/London
-locale=en_GB
-hostname=ArtixPC
-user=blake
-
-# Note: the groups provided are required for seatd to work and may
-# vary depending on your use-case. See the following URL for
-# information regarding the purpose of each group:
-# https://wiki.archlinux.org/title/Users_and_groups#Group_list
-user_groups=wheel,video,audio,input,seat,log
-
-# Options
-autologin=false
-encrypt=false
-arch_support=false
-enable_aur=false
-# ======================================================
-# INSTALLATION
-# ======================================================
+# FIXME: fix encryption setup
+# TODO: add BIOS support
+# TODO: add pacman repository options (https://wiki.artixlinux.org/Main/Repositories)
+
+source config
# Ensure nothing mounted
swapoff -a &> /dev/null