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