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,
|
|
|
|
|
# Atheros AR242x wifi. BIOS only, MBR disk: sda1 root, sda2 swap.
|
|
|
|
|
{ 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 = [ ];
|
|
|
|
|
boot.kernelModules = [ ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
|
|
boot.loader.grub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
device = "/dev/sda";
|
2026-09-29 19:57:20 +01:00
|
|
|
# Kernel list corruption + random segfaults under load; suspect the RAM.
|
|
|
|
|
memtest86.enable = true;
|
2026-09-28 14:40:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/3b1f4a1a-a5f7-480d-8bc1-a372b846d22c";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
|
2026-09-29 19:24:47 +01:00
|
|
|
# sda2 (uuid 32ca4097-…) is swap but left off: paging a browser to this disk
|
|
|
|
|
# froze the box for minutes. zram only, so earlyoom fires before a thrash.
|
|
|
|
|
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";
|
|
|
|
|
}
|