68 lines
1.6 KiB
Nix
68 lines
1.6 KiB
Nix
|
{ pkgs
|
|||
|
, lib
|
|||
|
, config
|
|||
|
, ... }:
|
|||
|
|
|||
|
let
|
|||
|
keys = import ../../../variables/keys.nix;
|
|||
|
|
|||
|
in {
|
|||
|
# TASK: new device
|
|||
|
networking.hostName = "router-wan-host"; # Define your hostname.
|
|||
|
# networking.domain = "home-ch.stefanjunker.de";
|
|||
|
|
|||
|
networking.firewall.enable = true;
|
|||
|
networking.firewall.allowedTCPPorts = [
|
|||
|
# iperf3
|
|||
|
5201
|
|||
|
];
|
|||
|
networking.firewall.logRefusedConnections = false;
|
|||
|
|
|||
|
networking.usePredictableInterfaceNames = true;
|
|||
|
networking.dhcpcd = {
|
|||
|
enable = true;
|
|||
|
persistent = true;
|
|||
|
};
|
|||
|
|
|||
|
networking.interfaces.eth0 = {
|
|||
|
ipv4.addresses = [
|
|||
|
{ address = "172.172.172.254"; prefixLength = 24; }
|
|||
|
];
|
|||
|
useDHCP = false;
|
|||
|
# ipv6.addresses = [
|
|||
|
# { address = "2a02:c207:3003:2387::1"; prefixLength = 64; }
|
|||
|
# ];
|
|||
|
};
|
|||
|
|
|||
|
# networking.defaultGateway6 = {
|
|||
|
# address = "fe80::1";
|
|||
|
# interface = "eth0";
|
|||
|
# };
|
|||
|
|
|||
|
# networking.nat = {
|
|||
|
# enable = true;
|
|||
|
# internalInterfaces = [ "ve-+" ];
|
|||
|
# externalInterface = "eth0";
|
|||
|
# };
|
|||
|
|
|||
|
# Kubernetes
|
|||
|
# services.kubernetes.roles = ["master" "node"];
|
|||
|
|
|||
|
nix.gc = {
|
|||
|
automatic = true;
|
|||
|
};
|
|||
|
|
|||
|
networking.useHostResolvConf = true;
|
|||
|
|
|||
|
containers = {
|
|||
|
};
|
|||
|
|
|||
|
# 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. It‘s 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?
|
|||
|
}
|