feat(distro): rename ISO targets and fix UEFI boot in live test script
- Rename installerIso and installerIsoGraphical to nomarchy-installer and nomarchy-live. - Update host configurations with proper Nomarchy branding and volume IDs. - Fix nomarchy-test-live-iso QEMU launch by using -drive if=pflash for UEFI firmware. - Add nomarchy-build-live-iso utility script. - Scrub remaining Omarchy references in Plymouth, installer messages, and docs. - Regenerate docs/SCRIPTS.md to reflect new and renamed utilities.
This commit is contained in:
122
hosts/nomarchy-installer.nix
Normal file
122
hosts/nomarchy-installer.nix
Normal file
@@ -0,0 +1,122 @@
|
||||
{ config, pkgs, inputs, lib, ... }:
|
||||
|
||||
# Minimal TTY Installer ISO Configuration
|
||||
#
|
||||
# This creates a minimal, text-only installation environment.
|
||||
# No desktop environment - just TTY with gum-based installer.
|
||||
|
||||
{
|
||||
imports = [
|
||||
../core/system/nix.nix
|
||||
../core/system/branding.nix
|
||||
];
|
||||
|
||||
# Base installation media configuration is handled by the module imported in flake.nix
|
||||
|
||||
# Console configuration for a pleasant TTY experience.
|
||||
# keyMap and i18n.defaultLocale are mkDefault — the install.sh keymap step
|
||||
# calls `loadkeys` at runtime to honor the user's pick during the install,
|
||||
# and writes the chosen value into the *installed* system's system.nix.
|
||||
console = {
|
||||
font = "ter-v16n";
|
||||
packages = [ pkgs.terminus_font ];
|
||||
keyMap = lib.mkDefault "us";
|
||||
};
|
||||
|
||||
i18n.defaultLocale = lib.mkDefault "en_US.UTF-8";
|
||||
|
||||
# ISO Branding
|
||||
isoImage.volumeID = lib.mkForce "NOMARCHY_INSTALLER";
|
||||
isoImage.edition = lib.mkForce "minimal";
|
||||
|
||||
# Essential packages for installation
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Core utilities
|
||||
git
|
||||
vim
|
||||
curl
|
||||
wget
|
||||
|
||||
# TUI installer dependencies
|
||||
gum
|
||||
|
||||
# Disk tools
|
||||
inputs.disko.packages.${pkgs.stdenv.hostPlatform.system}.disko
|
||||
parted
|
||||
btrfs-progs
|
||||
cryptsetup
|
||||
|
||||
# Network tools
|
||||
networkmanager
|
||||
|
||||
# System info
|
||||
lshw
|
||||
pciutils
|
||||
usbutils
|
||||
|
||||
# Installer command
|
||||
(pkgs.writeShellScriptBin "nomarchy-install" ''
|
||||
exec /etc/install.sh "$@"
|
||||
'')
|
||||
];
|
||||
|
||||
# Enable NetworkManager for easy network setup
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Auto-login to TTY as root for installation
|
||||
services.getty.autologinUser = lib.mkForce "root";
|
||||
|
||||
# Display welcome message and installer info
|
||||
environment.etc."motd".text = ''
|
||||
|
||||
╔══════════════════════════════════════════════════════════════╗
|
||||
║ ║
|
||||
║ NOMARCHY INSTALLER ║
|
||||
║ ║
|
||||
║ Run 'nomarchy-install' to start the installation wizard ║
|
||||
║ ║
|
||||
║ For network setup: nmtui ║
|
||||
║ For manual install: see /etc/nomarchy/ ║
|
||||
║ ║
|
||||
╚══════════════════════════════════════════════════════════════╝
|
||||
|
||||
'';
|
||||
|
||||
# Make the installer script available
|
||||
environment.etc."install.sh" = {
|
||||
source = ../installer/install.sh;
|
||||
mode = "0755";
|
||||
};
|
||||
|
||||
environment.etc."hardware-db.sh" = {
|
||||
source = ../installer/hardware-db.sh;
|
||||
mode = "0644";
|
||||
};
|
||||
|
||||
# Symlink for easy access (merged into systemPackages above)
|
||||
# The nomarchy-install script is created by writeShellScriptBin in the main list
|
||||
|
||||
# Include disko configurations
|
||||
environment.etc."disko-golden.nix".source = ../installer/disko-golden.nix;
|
||||
|
||||
# Include Nomarchy source for installation
|
||||
environment.etc."nomarchy".source = inputs.self;
|
||||
|
||||
# Disable graphical stuff - this is TTY only
|
||||
services.xserver.enable = false;
|
||||
services.displayManager.sddm.enable = lib.mkForce false;
|
||||
|
||||
# Ensure we have a proper shell environment
|
||||
programs.bash.completion.enable = true;
|
||||
|
||||
# Auto-launch installer on the main TTY (tty1)
|
||||
programs.bash.loginShellInit = ''
|
||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||
nomarchy-install
|
||||
fi
|
||||
'';
|
||||
|
||||
# Include documentation
|
||||
documentation.enable = true;
|
||||
documentation.man.enable = true;
|
||||
}
|
||||
Reference in New Issue
Block a user