initial snapshot
This commit is contained in:
commit
24b41c4faf
16 changed files with 452 additions and 0 deletions
40
ppc.nix
Normal file
40
ppc.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue