We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 739087f commit 9a8f145Copy full SHA for 9a8f145
nix/modules/nixos/auth.nix
@@ -7,7 +7,6 @@
7
}:
8
let
9
cfg = config.services.auth;
10
- gotrue = perSystem.self.default;
11
default_settings = rec {
12
API_EXTERNAL_URL = "http://localhost:9999";
13
DB_HOST = "localhost";
@@ -60,7 +59,7 @@ in
60
59
61
package = lib.mkOption {
62
type = lib.types.package;
63
- default = pkgs.callPackage ../../package.nix { };
+ default = perSystem.self.default;
64
description = "The Supabase Auth package to use.";
65
};
66
@@ -93,7 +92,7 @@ in
93
92
serviceConfig = {
94
Type = "simple";
95
WorkingDirectory = "/opt/gotrue";
96
- ExecStart = "${gotrue}/bin/gotrue --config-dir /etc/auth.d";
+ ExecStart = "${cfg.package}/bin/gotrue --config-dir /etc/auth.d";
97
User = "gotrue";
98
Restart = "always";
99
RestartSec = 3;
0 commit comments