add n1 clusterboard compute module
This commit is contained in:
parent
a7c462ad2b
commit
12e025491a
@ -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 ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
16
machines/compute/common.nix
Normal file
16
machines/compute/common.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
9
machines/compute/n1/configuration.nix
Normal file
9
machines/compute/n1/configuration.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../common.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.hostName = "n1";
|
||||||
|
}
|
BIN
machines/compute/sopine-baseboard-ethernet.dtbo
Normal file
BIN
machines/compute/sopine-baseboard-ethernet.dtbo
Normal file
Binary file not shown.
15
machines/compute/sopine-baseboard-ethernet.dts
Normal file
15
machines/compute/sopine-baseboard-ethernet.dts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/dts-v1/;
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "SoPine with baseboard";
|
||||||
|
compatible = "pine64,sopine-baseboard\0pine64,sopine\0allwinner,sun50i-a64";
|
||||||
|
|
||||||
|
fragment@0 {
|
||||||
|
/* target = <ðernet@1c30000>; */
|
||||||
|
target-path = "/soc/ethernet@1c30000";
|
||||||
|
__overlay__ {
|
||||||
|
allwinner,tx-delay-ps = <500>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user