Theme System: - Move all theme app configs to apps/ subdirectory (20 themes) - Add theme-loader.nix for dynamic theme config deployment - Simplify stylix.nix to focus on base theming only Override System: - Add overrides.nix for file-based config overrides - Add behavior-configs.nix for non-visual configuration - Split hypr/nomarchy.conf into behavior vs visual sections Module Improvements: - Add lib.mkDefault to all customizable settings - Add modules/lib/ with shared utilities and state schema - Update all home and system modules for downstream overridability Installer: - New minimal TTY installer (installer/install.sh) - Golden path: BTRFS + LUKS2 (disko-golden.nix) - New installer-iso.nix for TTY-only installation - Keep graphical installer as installerIsoGraphical option Cleanup: - Remove obsolete install.sh, disko-ext4.nix, install-nomarchy.sh - Update live-iso.nix references - Add .claude/ to .gitignore for local IDE settings Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
96 lines
3.0 KiB
Nix
96 lines
3.0 KiB
Nix
{ 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.
|
|
|
|
{
|
|
# Base installation media configuration is handled by the module imported in flake.nix
|
|
|
|
# Console configuration for a pleasant TTY experience
|
|
console = {
|
|
font = "ter-v16n";
|
|
packages = [ pkgs.terminus_font ];
|
|
};
|
|
|
|
# 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";
|
|
};
|
|
|
|
# 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;
|
|
|
|
# Include documentation
|
|
documentation.enable = true;
|
|
documentation.man.enable = true;
|
|
}
|