add sakosite

This commit is contained in:
Sakooooo 2025-01-04 21:02:06 +04:00
parent d78b350f98
commit 215c06c753
Signed by: sako
GPG key ID: FE52FD65B76E4751
2 changed files with 23 additions and 1 deletions

View file

@ -1 +1 @@
{ imports = [ ./forgejo ./headscale.nix ./local ]; } { imports = [ ./forgejo ./headscale.nix ./local ./sakosite.nix ]; }

View file

@ -0,0 +1,22 @@
{ config, lib, ... }:
with lib;
let cfg = config.void.services.sakosite;
in {
options.void.server.services.sakosite = { enable = mkEnableOption false; };
config = mkIf cfg.enable {
security.acme.certs."sako.lol" = {
credentialsFile = "/srv/secrets/porkbun";
dnsProvider = "porkbun";
webroot = null;
};
services = {
nginx.virtualHosts."sako.lol" = {
enableACME = true;
forceSSL = true;
root = "/srv/static/sakosite";
};
};
};
}