diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2022-12-20 22:29:55 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2022-12-20 22:29:55 +0100 |
| commit | 95644485ac1402a8dc84c520a3ded7b29720f950 (patch) | |
| tree | c124a795dba03106cadff1645c532f6251898f86 /tests/vm.nix | |
| parent | 51df83cffaa45130f94bf5ab78b6b14fbb37ec4d (diff) | |
| parent | 9bde3c4624eb916bafcf9a18792edb42e3a25a17 (diff) | |
| download | hermes-95644485ac1402a8dc84c520a3ded7b29720f950.tar.gz hermes-95644485ac1402a8dc84c520a3ded7b29720f950.tar.bz2 hermes-95644485ac1402a8dc84c520a3ded7b29720f950.tar.xz | |
Merge branch 'master' into searx-engine-alternativeto
Diffstat (limited to 'tests/vm.nix')
| -rw-r--r-- | tests/vm.nix | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/tests/vm.nix b/tests/vm.nix deleted file mode 100644 index e878c12..0000000 --- a/tests/vm.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ 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"; - }]; - forceSSL = lib.mkForce false; - enableACME = lib.mkForce false; - }; -in { - imports = [ ../configuration.nix ]; - - networking = lib.mkForce { - domain = "aristote.vm"; - - interfaces = { }; - defaultGateway = null; - nameservers = [ ]; - - firewall = { allowedTCPPorts = nginxPorts; }; - }; - - services.filtron.rules = lib.mkForce [ ]; - - services.nginx.virtualHosts = { - quentin = nginxMakeLocal 8080; - searx = nginxMakeLocal 8081; - money = nginxMakeLocal 8082; - rss = nginxMakeLocal 8083; - webkeydirectory = nginxMakeLocal 8084; - }; - - environment.etc."searx/secrets".text = '' - SECRET_KEY=secret_key - ''; -} |
