summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2025-01-18 19:36:31 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2025-01-26 22:44:50 +0100
commit66d20b789ee1f53898196ace7f7f717cfdd2abe2 (patch)
treefe6f7a27abaf2d1545e29d1b30a30b187ce92af9 /tests
parent429e2c9fb1c7f981fe562b80feb270c40758d3da (diff)
add headscale
Diffstat (limited to 'tests')
-rw-r--r--tests/configuration.nix34
1 files changed, 21 insertions, 13 deletions
diff --git a/tests/configuration.nix b/tests/configuration.nix
index 965f365..e46c726 100644
--- a/tests/configuration.nix
+++ b/tests/configuration.nix
@@ -1,41 +1,49 @@
-{ config, lib, modulesPath, ... }:
-
-let
- nginxPorts = lib.concatLists
+{
+ config,
+ lib,
+ ...
+}: let
+ nginxPorts =
+ lib.concatLists
(lib.mapAttrsToList (_: cfg: (builtins.map (x: x.port) cfg.listen))
config.services.nginx.virtualHosts);
nginxMakeLocal = port: {
- listen = lib.mkForce [{
- inherit port;
- addr = "0.0.0.0";
- }];
+ listen = lib.mkForce [
+ {
+ inherit port;
+ addr = "0.0.0.0";
+ }
+ ];
forceSSL = lib.mkForce false;
enableACME = lib.mkForce false;
};
in {
- imports = [ ../config ];
+ 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.filtron.rules = lib.mkForce [];
services.rss-bridge.debug = true;
+ services.headscale.settings.server_url = lib.mkForce "http://10.233.1.2:8085/";
+
services.nginx.virtualHosts = {
quentin = nginxMakeLocal 8080;
searx = nginxMakeLocal 8081;
rss = nginxMakeLocal 8083;
webkeydirectory = nginxMakeLocal 8084;
+ mesh = nginxMakeLocal 8085;
};
environment.etc = {