diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-11-26 15:26:29 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-11-26 15:26:29 +0100 |
| commit | 734cab332543184095fd1f046c98f26f3a4fd532 (patch) | |
| tree | 33d339110779a991f820a860c28cb3ceceb6323f /test/vm.nix | |
| parent | a468ef741c176342179650e39abb5f28131122ae (diff) | |
rename test to tests
Diffstat (limited to 'test/vm.nix')
| -rw-r--r-- | test/vm.nix | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/test/vm.nix b/test/vm.nix deleted file mode 100644 index 390d02b..0000000 --- a/test/vm.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ config, lib, ... }: - -let - nginxPorts = lib.concatLists - (lib.mapAttrsToList (_: cfg: (builtins.map (x: x.port) cfg.listen)) - config.services.nginx.virtualHosts); -in { - imports = [ ../configuration.nix ]; - - networking = lib.mkForce { - domain = "aristote.vm"; - - interfaces = { }; - defaultGateway = null; - nameservers = [ ]; - - firewall = { allowedTCPPorts = nginxPorts; }; - }; - - services.nginx.virtualHosts = { - quentin = { - listen = lib.mkForce [{ - addr = "0.0.0.0"; - port = 8080; - }]; - forceSSL = lib.mkForce false; - enableACME = lib.mkForce false; - }; - searx = { - listen = lib.mkForce [{ - addr = "0.0.0.0"; - port = 8081; - }]; - forceSSL = lib.mkForce false; - enableACME = lib.mkForce false; - }; - money = { - listen = lib.mkForce [{ - addr = "0.0.0.0"; - port = 8082; - }]; - forceSSL = lib.mkForce false; - enableACME = lib.mkForce false; - }; - }; - - environment.etc."searx/secrets".text = '' - SECRET_KEY=secret_key - ''; -} |
