22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-06-02 14:29:23 +02:00

portunus: skip approval screen

This commit is contained in:
Sandro - 2023-12-03 23:19:30 +01:00
parent e13d4d65b8
commit 549c70b71d
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -55,7 +55,7 @@ in
};
};
config = {
config = lib.mkIf cfg.enable {
networking.hosts = lib.mkIf cfg.addToHosts {
${cfg.internalIp4} = [ cfg.domain ];
${cfg.internalIp6} = [ cfg.domain ];
@ -101,7 +101,12 @@ in
})
];
services.portunus.seedPath = pkgs.writeText "seed.json" (builtins.toJSON cfg.seedSettings);
services = {
# the user has no other option to accept this and all clients are internal anyway
dex.settings.oauth2.skipApprovalScreen = true;
portunus.seedPath = pkgs.writeText "seed.json" (builtins.toJSON cfg.seedSettings);
};
security.ldap = lib.mkIf cfg.ldapPreset {
domainName = cfg.domain;