fold -> foldr

deprecated in f4d36941eb
This commit is contained in:
zowoq 2025-11-26 19:38:56 +10:00
parent 3bda9f6b14
commit 36fed93cf5
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ in
config = mkIf (cfg.sessions != []) {
launchd.daemons =
lib.fold ( s : acc : acc //
lib.foldr ( s : acc : acc //
{
"autossh-${s.name}" =
let

View file

@ -11,7 +11,7 @@ let
failedAssertions = map (x: x.message) (filter (x: !x.assertion) config.assertions);
throwAssertions = res: if (failedAssertions != []) then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" else res;
showWarnings = res: fold (w: x: builtins.trace "warning: ${w}" x) res config.warnings;
showWarnings = res: foldr (w: x: builtins.trace "warning: ${w}" x) res config.warnings;
in