diff --git a/config/media.nix b/config/media.nix index e6ed270..b57e2e3 100644 --- a/config/media.nix +++ b/config/media.nix @@ -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; }) ]; diff --git a/config/networking.nix b/config/networking.nix index 1f9cf80..07a94f8 100644 --- a/config/networking.nix +++ b/config/networking.nix @@ -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; diff --git a/config/sampledb.nix b/config/sampledb.nix index 74befaf..0e12936 100644 --- a/config/sampledb.nix +++ b/config/sampledb.nix @@ -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; }) ];