More networking debugging

This commit is contained in:
Random936 2024-11-03 20:59:00 -08:00
parent 2971a7c1fb
commit 3e15342e68
3 changed files with 8 additions and 6 deletions

View File

@ -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;
})
];

View File

@ -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;

View File

@ -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;
})
];