actual: hardcode domain

This commit is contained in:
Katherina Walshe-Grey 2025-03-04 19:46:37 +00:00
parent 86f77d2564
commit 9760d4d3bc
2 changed files with 4 additions and 9 deletions

View file

@ -33,10 +33,7 @@
process_children_only = true; process_children_only = true;
}; };
qenya.services.actual = { qenya.services.actual.enable = true;
enable = true;
domain = "actual.qenya.tel";
};
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View file

@ -3,20 +3,18 @@
with lib; with lib;
let let
cfg = config.qenya.services.actual; cfg = config.qenya.services.actual;
domain = "actual.qenya.tel";
in in
{ {
options.qenya.services.actual = { options.qenya.services.actual = {
enable = mkEnableOption "Actual"; enable = mkEnableOption "Actual Budget";
domain = mkOption {
type = types.str;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.nginx = { services.nginx = {
enable = true; enable = true;
virtualHosts = { virtualHosts = {
${cfg.domain} = { ${domain} = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/".proxyPass = "http://127.0.0.1:5006/"; locations."/".proxyPass = "http://127.0.0.1:5006/";