Skip to content

Commit f69f62d

Browse files
portunus: fix dex enable
1 parent f7a4bfb commit f69f62d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

modules/portunus.nix

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,8 @@ in
126126
callbackURL = "https://${cfg.domain}/oauth2/callback";
127127
clientID = "oauth2_proxy"; # - is not allowed in environment variables
128128
in {
129-
dex = {
130-
enable = lib.mkIf cfg.configureOAuth2Proxy true;
131-
# the user has no other option to accept this and all clients are internal anyway
132-
settings.oauth2.skipApprovalScreen = true;
133-
};
129+
# the user has no other option to accept this and all clients are internal anyway
130+
dex.settings.oauth2.skipApprovalScreen = true;
134131

135132
oauth2_proxy = lib.mkIf cfg.configureOAuth2Proxy {
136133
enable = true;
@@ -148,10 +145,13 @@ in
148145
};
149146
};
150147

151-
portunus.dex.oidcClients = lib.mkIf cfg.configureOAuth2Proxy [{
152-
inherit callbackURL;
153-
id = clientID;
154-
}];
148+
portunus.dex = lib.mkIf cfg.configureOAuth2Proxy {
149+
enable = true;
150+
oidcClients = [{
151+
inherit callbackURL;
152+
id = clientID;
153+
}];
154+
};
155155
};
156156

157157
security.ldap = lib.mkIf cfg.ldapPreset {

0 commit comments

Comments
 (0)