summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorseth <[email protected]>2023-09-06 19:39:30 -0400
committerseth <[email protected]>2023-09-07 13:52:26 -0400
commit50a7fad76fde9d23bd68a056082b34085c96374f (patch)
treed0cf0c7ee8dc81819b90ef8a69cc977261ccbb29 /hosts
parent870a4628ab1ac0be6d26214085c2a663c36d2568 (diff)
hosts/atlas: use new guzzle api module
Diffstat (limited to 'hosts')
-rw-r--r--hosts/atlas/default.nix10
-rw-r--r--hosts/default.nix2
2 files changed, 7 insertions, 5 deletions
diff --git a/hosts/atlas/default.nix b/hosts/atlas/default.nix
index 3f01ed7..ad6e7e8 100644
--- a/hosts/atlas/default.nix
+++ b/hosts/atlas/default.nix
@@ -1,7 +1,6 @@
{
config,
pkgs,
- guzzle_api,
...
}: {
imports = [
@@ -24,9 +23,12 @@
services = {
guzzle-api = {
enable = true;
- url = "https://api." + config.networking.domain;
- port = "8080";
- package = guzzle_api.packages.x86_64-linux.guzzle-api-server;
+ domain = "api.${config.networking.domain}";
+ nginx = {
+ enableACME = true;
+ acmeRoot = null;
+ addSSL = true;
+ };
};
};
diff --git a/hosts/default.nix b/hosts/default.nix
index 42a4f35..46f075f 100644
--- a/hosts/default.nix
+++ b/hosts/default.nix
@@ -29,7 +29,7 @@
};
atlas = {
- modules = [inputs.guzzle_api.nixosModules.guzzle_api];
+ modules = [inputs.guzzle_api.nixosModules.default];
system = "aarch64-linux";
profile = profiles.server;
};