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:
parent
e13d4d65b8
commit
549c70b71d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user