More networking debugging
This commit is contained in:
parent
2971a7c1fb
commit
3e15342e68
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, inputs, ... }: {
|
{ config, pkgs, inputs, lib, ... }: {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../hardware/media.nix
|
../hardware/media.nix
|
||||||
@ -7,6 +7,7 @@
|
|||||||
hostname = "r330-media";
|
hostname = "r330-media";
|
||||||
ip_address = "192.168.100.40";
|
ip_address = "192.168.100.40";
|
||||||
open_ports = [ 80 443 32400 ];
|
open_ports = [ 80 443 32400 ];
|
||||||
|
inherit lib;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ ip_address, hostname, open_ports }:
|
{ ip_address, hostname, open_ports, lib }:
|
||||||
{
|
{
|
||||||
# Configure hostname.
|
# Configure hostname.
|
||||||
networking.hostName = hostname;
|
networking.hostName = hostname;
|
||||||
@ -8,7 +8,7 @@
|
|||||||
networking.useNetworkd= true;
|
networking.useNetworkd= true;
|
||||||
|
|
||||||
# Bug fix
|
# Bug fix
|
||||||
systemd.services.systemd-networkd-wait-online.enable = false;
|
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
|
||||||
|
|
||||||
networking.defaultGateway = {
|
networking.defaultGateway = {
|
||||||
address = ip_address;
|
address = ip_address;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, inputs, ... }: {
|
{ config, pkgs, inputs, lib, ... }: {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../hardware/sampledb.nix
|
../hardware/sampledb.nix
|
||||||
@ -7,6 +7,7 @@
|
|||||||
hostname = "sampledb-dev";
|
hostname = "sampledb-dev";
|
||||||
ip_address = "192.168.100.42";
|
ip_address = "192.168.100.42";
|
||||||
open_ports = [ 80 443 ];
|
open_ports = [ 80 443 ];
|
||||||
|
inherit lib;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user