1
0
Fork 0

mediaserver: add nginx

This commit is contained in:
Daniel Kempkens 2023-04-14 16:21:39 +02:00
parent c516c9c3c9
commit 4841a89c3d
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -1,8 +1,5 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
let
interfaces = lib.mapAttrsToList (name: value: value.matchConfig.Name) config.systemd.network.networks ++ [ "tailscale0" ];
in
{ {
services.nginx = { services.nginx = {
enable = true; enable = true;
@ -29,7 +26,11 @@ in
''; '';
}; };
networking.firewall.interfaces = builtins.listToAttrs networking.firewall.interfaces =
let
interfaces = lib.mapAttrsToList (_: value: value.matchConfig.Name ? null) config.systemd.network.networks ++ [ "tailscale0" ];
in
builtins.listToAttrs
(builtins.map (builtins.map
(iface: (iface:
{ {