Deduplicate networking.defaultGateway
This commit is contained in:
parent
8798b2c1b6
commit
3ae443cee4
|
@ -9,10 +9,10 @@ in {
|
|||
[ ../../../lib/lxc-container.nix
|
||||
../../../lib/shared.nix
|
||||
../../../lib/admins.nix
|
||||
../../../lib/default-gateway.nix
|
||||
];
|
||||
|
||||
networking.hostName = "dn42";
|
||||
networking.defaultGateway = "172.22.99.4";
|
||||
# networking.defaultGateway6 = {
|
||||
# address = "2a02:8106:208:5201::c3d2:4";
|
||||
# interface = "eth0";
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
networking.hostName = "grafana";
|
||||
networking.useNetworkd = true;
|
||||
#networking.defaultGateway = "172.22.99.4";
|
||||
# Needs IPv4 for obtaining certs?
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces.eth0.useDHCP = true;
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
[ ../../../lib/lxc-container.nix
|
||||
../../../lib/shared.nix
|
||||
../../../lib/admins.nix
|
||||
../../../lib/default-gateway.nix
|
||||
./proxy.nix
|
||||
];
|
||||
|
||||
networking.hostName = "public-access-proxy";
|
||||
networking.useNetworkd = true;
|
||||
networking.defaultGateway = "172.22.99.4";
|
||||
networking.useDHCP = lib.mkForce true;
|
||||
|
||||
my.services.proxy = {
|
||||
|
|
|
@ -8,12 +8,12 @@ in
|
|||
[ ../../../lib/lxc-container.nix
|
||||
../../../lib/shared.nix
|
||||
../../../lib/admins.nix
|
||||
../../../lib/default-gateway.nix
|
||||
"${spacemsgGit}/spaceapi/module.nix"
|
||||
];
|
||||
|
||||
networking.hostName = "spaceapi";
|
||||
networking.useNetworkd = true;
|
||||
networking.defaultGateway = "172.22.99.4";
|
||||
networking.useDHCP = lib.mkForce true;
|
||||
networking.firewall.allowedTCPPorts = [ 3000 3001 ];
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ in
|
|||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
../../lib/default-gateway.nix
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
|
@ -25,7 +26,6 @@ in
|
|||
|
||||
networking.hostName = "glotzbert"; # Define your hostname.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.defaultGateway = "172.22.99.4";
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
../../lib/users.nix
|
||||
./ncdc.nix
|
||||
../../lib/mpd.nix
|
||||
../../lib/default-gateway.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, lib, strings, ... }:
|
||||
|
||||
{
|
||||
networking.defaultGateway = "172.22.99.4";
|
||||
}
|
Loading…
Reference in New Issue