diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2025-09-10 16:36:54 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2025-09-10 16:41:40 +0200 |
| commit | 15e5974fbdd1e1c3be94a04b942c8b116dda2687 (patch) | |
| tree | 52f302802e34df0961716d6bf1df0be0b599d50a /tests/configuration.nix | |
| parent | cc50a72c9b37dd9c9c675a255bfa9f8c66527ab4 (diff) | |
networking: enable systemd-resolved (for tailscale)
Diffstat (limited to 'tests/configuration.nix')
| -rw-r--r-- | tests/configuration.nix | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/tests/configuration.nix b/tests/configuration.nix index e46c726..22c76c2 100644 --- a/tests/configuration.nix +++ b/tests/configuration.nix @@ -2,11 +2,13 @@ config, lib, ... -}: let - nginxPorts = - lib.concatLists - (lib.mapAttrsToList (_: cfg: (builtins.map (x: x.port) cfg.listen)) - config.services.nginx.virtualHosts); +}: +let + nginxPorts = lib.concatLists ( + lib.mapAttrsToList ( + _: cfg: (builtins.map (x: x.port) cfg.listen) + ) config.services.nginx.virtualHosts + ); nginxMakeLocal = port: { listen = lib.mkForce [ { @@ -17,22 +19,27 @@ forceSSL = lib.mkForce false; enableACME = lib.mkForce false; }; -in { - imports = [../config]; +in +{ + imports = [ ../config ]; boot.isContainer = true; networking = lib.mkForce { domain = "aristote.vm"; - interfaces = {}; + interfaces = { }; defaultGateway = null; - nameservers = []; + nameservers = [ ]; - firewall = {allowedTCPPorts = nginxPorts;}; + firewall = { + allowedTCPPorts = nginxPorts; + }; }; - services.filtron.rules = lib.mkForce []; + services.resolved.enable = lib.mkForce false; + + services.filtron.rules = lib.mkForce [ ]; services.rss-bridge.debug = true; |
