add n1 clusterboard compute module

This commit is contained in:
zuckerberg 2021-05-09 10:30:27 -04:00
parent a7c462ad2b
commit 12e025491a
5 changed files with 44 additions and 0 deletions

View File

@ -24,6 +24,10 @@
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ ./machines/storage/s0/configuration.nix ]; modules = [ ./machines/storage/s0/configuration.nix ];
}; };
"n1" = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [ ./machines/compute/n1/configuration.nix ];
};
}; };
}; };
} }

View File

@ -0,0 +1,16 @@
{ config, ... }:
{
imports = [
../../common/common.nix
];
nix.flakes.enable = true;
networking.interfaces.eth0.useDHCP = true;
hardware.deviceTree.enable = true;
hardware.deviceTree.overlays = [
./sopine-baseboard-ethernet.dtbo # fix pine64 clusterboard ethernet
];
}

View File

@ -0,0 +1,9 @@
{ config, ... }:
{
imports = [
../common.nix
];
networking.hostName = "n1";
}

Binary file not shown.

View File

@ -0,0 +1,15 @@
/dts-v1/;
/ {
model = "SoPine with baseboard";
compatible = "pine64,sopine-baseboard\0pine64,sopine\0allwinner,sun50i-a64";
fragment@0 {
/* target = <&ethernet@1c30000>; */
target-path = "/soc/ethernet@1c30000";
__overlay__ {
allwinner,tx-delay-ps = <500>;
};
};
};