odroidh2p-0: manual installation

This commit is contained in:
steveej 2020-12-13 21:39:45 +01:00
parent 284b5859a9
commit 905d086e4f
9 changed files with 296 additions and 0 deletions

View file

@ -0,0 +1,59 @@
{ pkgs
, lib
, config
, ... }:
let
keys = import ../../../variables/keys.nix;
in {
# TASK: new device
networking.hostName = "odroidh2p-0"; # Define your hostname.
# networking.domain = "";
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [
# iperf3
5201
];
networking.firewall.logRefusedConnections = false;
networking.usePredictableInterfaceNames = false;
networking.useDHCP = false;
networking.interfaces.eth0 = {
useDHCP = true;
};
networking.interfaces.eth1 = {
useDHCP = false;
};
networking.nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "eth0";
};
# virtualization
virtualisation = {
docker.enable = true;
};
nix.gc = {
automatic = true;
};
networking.useHostResolvConf = true;
services.openssh.forwardX11 = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "20.09"; # Did you read the comment?
}