From e097718251cee86f8feb5daf3e8e3af5845f65b2 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 29 Dec 2024 14:45:04 +0200 Subject: [PATCH] Fixed let in syntax --- nixosModules/actual-budget.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/nixosModules/actual-budget.nix b/nixosModules/actual-budget.nix index 6636cdb..47c781a 100644 --- a/nixosModules/actual-budget.nix +++ b/nixosModules/actual-budget.nix @@ -8,9 +8,6 @@ actualBudget.enable = lib.mkEnableOption "enables actual-budget"; }; - let - port = 5006; - in config = lib.mkIf config.actualBudget.enable { users.users.actualbudget = { @@ -28,7 +25,7 @@ services.actual.enable = true; services.actual.settings.config.dataDir = "/srv/actual-budget"; - services.actual.settings.options.port = ${port}; + services.actual.settings.options.port = 5006; # Open http and https ports to the public networking.firewall.allowedTCPPorts = [ 443 80 ]; @@ -40,7 +37,7 @@ useACMEHost = "kyren.codes"; forceSSL = true; - locations."/".proxyPass = "http://localhost:${port}/"; + locations."/".proxyPass = "http://localhost:5006/"; locations."/".extraConfig = '' proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host;