- Rename variants/ to hw/ for clearer hardware module naming - Rename glue/ to fleet/ for more intuitive fleet management - Move boot/fs configuration from glue/boot.nix to separate fleet/boot.nix and fleet/fs.nix - Improve separation of concerns between boot, filesystem, and common config
51 lines
1.6 KiB
Nix
51 lines
1.6 KiB
Nix
# ============================================================================
|
|
# Desktop Configuration
|
|
# ============================================================================
|
|
# Hardware and boot configuration for standard desktop workstations.
|
|
# Includes Intel CPU support and NVMe storage.
|
|
|
|
{
|
|
config,
|
|
lib,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
# ========== Boot Configuration ==========
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
"xhci_pci" # USB 3.0 support
|
|
"nvme" # NVMe SSD support
|
|
"usb_storage" # USB storage devices
|
|
"sd_mod" # SD card support
|
|
"sdhci_pci" # SD card host controller
|
|
];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-intel" ]; # Intel virtualization support
|
|
boot.extraModulePackages = [ ];
|
|
boot.kernelParams = [
|
|
"quiet" # Minimal boot messages
|
|
"splash" # Show Plymouth boot splash
|
|
"boot.shell_on_fail" # Emergency shell on boot failure
|
|
"udev.log_priority=3" # Reduce udev logging
|
|
"rd.systemd.show_status=auto" # Show systemd status during boot
|
|
];
|
|
|
|
# ========== Filesystem Configuration ==========
|
|
athenix.host.filesystem.swapSize = lib.mkDefault "16G";
|
|
athenix.host.filesystem.device = lib.mkDefault "/dev/nvme0n1";
|
|
athenix.host.buildMethods = lib.mkDefault [ "installer-iso" ];
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
# ========== Hardware Configuration ==========
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
# ========== Software Profile ==========
|
|
athenix.sw.enable = lib.mkDefault true;
|
|
athenix.sw.type = lib.mkDefault "desktop";
|
|
}
|