diff --git a/configuration.nix b/configuration.nix index 7effb4f..33d1471 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,11 +1,14 @@ { lib, pkgs, ... }: +let address = "129.199.146.101"; +in { imports = [ ./hardware.nix - ./photoprism.nix - ./immich.nix + # NOTE: For now, only deploy the bare minimum + #./photoprism.nix + #./immich.nix ]; # Bootloader. @@ -15,7 +18,6 @@ disko.devices = import ./disko.nix; - # TODO: ipv6 address deployment.targetHost = ""; # Set your time zone. @@ -32,19 +34,20 @@ security.acme.acceptTerms = true; security.acme.defaults.email = "webmaster@nixos.org"; - # TODO: open the right ports networking.firewall.allowedTCPPorts = [ 80 443 8007 ]; networking.firewall.allowedUDPPorts = [ ]; networking.useNetworkd = true; - # TODO: - systemd.network.networks."10-wan" = { + systemd.network.networks."ens18" = { matchConfig.Name = "ens18"; networkConfig = { DHCP = "ipv4"; - Address = "2a01:e0a:de4:a0e1:eb2:caa1::4"; }; + ipv4.addresses = [ + { address = address; } + ]; + gateway = "129.199.146.254"; # make routing on this interface a dependency for network-online.target linkConfig.RequiredForOnline = "routable"; };