mirror of
https://github.com/sstent/nixos-cluster.git
synced 2026-01-26 07:01:48 +00:00
30 lines
576 B
Nix
30 lines
576 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
inputs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
nixpkgs.hostPlatform.system = "aarch64-linux";
|
|
networking.hostName = "odroid5";
|
|
networking.interfaces.end0.ipv4.addresses = [
|
|
{
|
|
address = "192.168.1.225";
|
|
prefixLength = 24;
|
|
}
|
|
];
|
|
|
|
services.openiscsi = {
|
|
enable = true;
|
|
name = "iqn.2020-08.org.linux-iscsi.initiatorhost:${config.networking.hostName}";
|
|
package = pkgs.openiscsi;
|
|
};
|
|
|
|
networking.defaultGateway = "192.168.1.1";
|
|
networking.nameservers = ["192.168.1.1" "8.8.8.8"];
|
|
}
|