2026-09-28 14:40:05 +01:00
|
|
|
#./hosts/hardware/FredOS-Eee.nix
|
|
|
|
|
#
|
|
|
|
|
# Asus Eee PC 1000HG: Atom N270 (i686 only, no x86_64), 1GB RAM, GMA 945,
|
2026-10-05 13:20:53 +01:00
|
|
|
# Atheros AR242x wifi, Intel 520 SSD. BIOS only, MBR disk: sda1 root.
|
2026-09-28 14:40:05 +01:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "usb_storage" "sd_mod" ];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
2026-09-29 20:18:55 +01:00
|
|
|
# 6.18 oopsed (list_add corruption) under load with memtest clean; 32-bit
|
|
|
|
|
# gets little testing, so stay on the older LTS.
|
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_12;
|
2026-09-28 14:40:05 +01:00
|
|
|
boot.kernelModules = [ ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
|
|
boot.loader.grub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
device = "/dev/sda";
|
2026-10-05 13:20:53 +01:00
|
|
|
# Added to rule out RAM for the 6.18 oops (it passed).
|
2026-09-29 19:57:20 +01:00
|
|
|
memtest86.enable = true;
|
2026-09-28 14:40:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
2026-10-05 13:20:53 +01:00
|
|
|
device = "/dev/disk/by-label/nixos";
|
2026-09-28 14:40:05 +01:00
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
|
2026-10-05 13:20:53 +01:00
|
|
|
# No disk swap: paging a browser to the old HDD froze the box for minutes.
|
|
|
|
|
# zram only, so earlyoom fires before a thrash.
|
2026-09-29 19:24:47 +01:00
|
|
|
swapDevices = [ ];
|
2026-09-28 14:40:05 +01:00
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = "i686-linux";
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
networking.hostName = "FredOS-Eee";
|
|
|
|
|
|
|
|
|
|
system.stateVersion = "26.05";
|
|
|
|
|
}
|