public-inbox: fix to support the current nixpkgs main
authorJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Wed, 2 Apr 2025 20:00:17 +0000 (22:00 +0200)
committerJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Wed, 2 Apr 2025 20:00:17 +0000 (22:00 +0200)
nixos/modules/services/mail/public-inbox.nix

index 385de9d95985c4a6b6a68b0c7d49139be0f8218e..94a4a987e88a84a61e0a5586532243bfbbb00a93 100644 (file)
@@ -12,7 +12,7 @@ let
   stateDir = "/var/lib/public-inbox";
 
   gitIni = pkgs.formats.gitIni { listsAsDuplicateKeys = true; };
   stateDir = "/var/lib/public-inbox";
 
   gitIni = pkgs.formats.gitIni { listsAsDuplicateKeys = true; };
-  iniAtom = gitIni.lib.types.atom;
+  iniAtom = elemAt gitIni.type/*attrsOf*/.functor.wrapped/*attrsOf*/.functor.wrapped/*either*/.functor.wrapped 0;
 
   useSpamAssassin =
     cfg.settings.publicinboxmda.spamcheck == "spamc"
 
   useSpamAssassin =
     cfg.settings.publicinboxmda.spamcheck == "spamc"