Skip to content

Commit

Permalink
portunus: remove upstream seedSettings option
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jan 30, 2024
1 parent 11a7f90 commit 2dae76c
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions modules/portunus.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,6 @@ in
default = false;
description = lib.mdDoc "Wether to seed groups configured in services as not member managed groups.";
};

# TODO: upstream to nixos
# https://github.com/NixOS/nixpkgs/pull/279050
seedSettings = lib.mkOption {
type = with lib.types; nullOr (attrsOf (listOf (attrsOf anything)));
default = null;
description = lib.mdDoc ''
Seed settings for users and grousp.
See upstream for format <https://github.com/majewsky/portunus#seeding-users-and-groups-from-static-configuration>
'';
};
};

config = {
Expand Down Expand Up @@ -141,13 +130,10 @@ in
};
};

portunus = {
dex.oidcClients = lib.mkIf cfg.configureOAuth2Proxy [{
inherit callbackURL;
id = clientID;
}];
seedPath = pkgs.writeText "seed.json" (builtins.toJSON cfg.seedSettings);
};
portunus.dex.oidcClients = lib.mkIf cfg.configureOAuth2Proxy [{
inherit callbackURL;
id = clientID;
}];
};

security.ldap = lib.mkIf cfg.ldapPreset {
Expand Down

0 comments on commit 2dae76c

Please sign in to comment.