nix-powerpc/ppc.nix
2025-02-10 11:47:09 +00:00

40 lines
756 B
Nix

{
inputs,
lib,
pkgs,
config,
...
}:
{
# Serial console
boot.kernelParams = [
"console=ttyS2,1500000"
"earlycon=uart8250,mmio32,0xff130000"
];
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.consoleLogLevel = lib.mkDefault 7;
networking = {
interfaces = {
"eth0" = {
useDHCP = true;
};
};
};
# originally from hardware-configuration.nix
nixpkgs.hostPlatform = lib.mkDefault "powerpc-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
hardware.enableAllHardware = false;
# temp hack in config
systemd.tpm2.enable = false;
fileSystems."/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
};
}