Skip to content

Commit 9a8f145

Browse files
jfrocheyvan-sraka
authored andcommitted
Fix auth package reference in nixos module
1 parent 739087f commit 9a8f145

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nix/modules/nixos/auth.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
}:
88
let
99
cfg = config.services.auth;
10-
gotrue = perSystem.self.default;
1110
default_settings = rec {
1211
API_EXTERNAL_URL = "http://localhost:9999";
1312
DB_HOST = "localhost";
@@ -60,7 +59,7 @@ in
6059

6160
package = lib.mkOption {
6261
type = lib.types.package;
63-
default = pkgs.callPackage ../../package.nix { };
62+
default = perSystem.self.default;
6463
description = "The Supabase Auth package to use.";
6564
};
6665

@@ -93,7 +92,7 @@ in
9392
serviceConfig = {
9493
Type = "simple";
9594
WorkingDirectory = "/opt/gotrue";
96-
ExecStart = "${gotrue}/bin/gotrue --config-dir /etc/auth.d";
95+
ExecStart = "${cfg.package}/bin/gotrue --config-dir /etc/auth.d";
9796
User = "gotrue";
9897
Restart = "always";
9998
RestartSec = 3;

0 commit comments

Comments
 (0)