From 8e3b36241526b6c9b018c7962c8fe2562b5aa06e Mon Sep 17 00:00:00 2001 From: Roy Dumblauskas Date: Fri, 30 May 2025 19:27:25 -0500 Subject: [PATCH] declare tests-service manually in config --- nixos/configuration.nix | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index c3d2aae..8cc7927 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -1,16 +1,5 @@ { config, lib, pkgs, meta, ... }: -let - testSiteIndex = pkgs.writeText "index.html" '' - - Hello - -

Hello from test.roypository.com

-

This content is defined in configuration.nix

- - - ''; -in { imports = [ ]; @@ -71,18 +60,15 @@ in enableACME = true; acmeRoot = null; }; + }; - virtualHosts."test.roypository.com" = { - forceSSL = true; - enableACME = true; - acmeRoot = null; - root = "${testSiteIndex}"; - locations."/" = { - extraConfig = - '' - index index.html; - ''; - }; + # Declare test service manually + services.tests-service = { + enable = true; + port = 8080; + nginx = { + enable = true; + hostname = "test.roypository.com"; }; };