refactor: major architectural restructure for theme-centric organization
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>
This commit is contained in:
95
hosts/installer-iso.nix
Normal file
95
hosts/installer-iso.nix
Normal file
@@ -0,0 +1,95 @@
|
||||
{ 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;
|
||||
}
|
||||
@@ -8,7 +8,7 @@
|
||||
(pkgs.makeDesktopItem {
|
||||
name = "install-nomarchy";
|
||||
desktopName = "Install Nomarchy";
|
||||
exec = "alacritty -e sudo /etc/install-nomarchy.sh";
|
||||
exec = "alacritty -e sudo /etc/install.sh";
|
||||
terminal = false;
|
||||
categories = [ "System" ];
|
||||
})
|
||||
@@ -17,17 +17,13 @@
|
||||
# Ensure the live environment user has the necessary groups for graphical acceleration and audio
|
||||
users.users.nixos.extraGroups = [ "wheel" "video" "render" "audio" "networkmanager" ];
|
||||
|
||||
environment.etc."install-nomarchy.sh" = {
|
||||
source = ../installer/install-nomarchy.sh;
|
||||
environment.etc."install.sh" = {
|
||||
source = ../installer/install.sh;
|
||||
mode = "0755";
|
||||
};
|
||||
|
||||
environment.etc."disko-ext4.nix" = {
|
||||
source = ../installer/disko-ext4.nix;
|
||||
};
|
||||
|
||||
environment.etc."disko-btrfs-luks.nix" = {
|
||||
source = ../installer/disko-btrfs-luks.nix;
|
||||
environment.etc."disko-golden.nix" = {
|
||||
source = ../installer/disko-golden.nix;
|
||||
};
|
||||
|
||||
environment.etc."nomarchy".source = inputs.self;
|
||||
|
||||
Reference in New Issue
Block a user