Keycloak: Difference between revisions

Onny (talk | contribs)
m Reword note about 25.05
 
(2 intermediate revisions by 2 users not shown)
Line 20: Line 20:


=== Importing realms ===
=== Importing realms ===
{{Note|The module is not yet part of the latest NixOS stable release and will be available with version 24.11.}}Using the realmFiles option, it is possible provision a realm from a JSON file or previous JSON export.<syntaxhighlight lang="nix">
{{Note|This module requires NixOS 25.05}}Using the realmFiles option, it is possible provision a realm from a JSON file or previous JSON export.<syntaxhighlight lang="nix">
{ ... }: let
{ ... }: let


Line 48: Line 48:
   services.keycloak = {
   services.keycloak = {
     realmFiles = [
     realmFiles = [
       pkgs.writeText "OIDCDemo.json" (builtins.toJSON realm)
       (pkgs.writeText "OIDCDemo.json" (builtins.toJSON realm))
     ];
     ];
   };
   };