From 50a7fad76fde9d23bd68a056082b34085c96374f Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 6 Sep 2023 19:39:30 -0400 Subject: hosts/atlas: use new guzzle api module --- flake.nix | 3 ++- hosts/atlas/default.nix | 10 ++++++---- hosts/default.nix | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 1269f10..6d032f0 100644 --- a/flake.nix +++ b/flake.nix @@ -60,7 +60,8 @@ guzzle_api = { url = "github:getchoo/guzzle_api"; inputs.nixpkgs.follows = "nixpkgs"; - inputs.pre-commit-hooks.follows = "pre-commit"; + inputs.parts.follows = "parts"; + inputs.pre-commit.follows = "pre-commit"; }; hm = { 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; }; -- cgit v1.2.3