From 36fed93cf527139bb94413aa99d93b0deaf1da43 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Wed, 26 Nov 2025 19:38:56 +1000 Subject: [PATCH] `fold` -> `foldr` deprecated in https://github.com/NixOS/nixpkgs/commit/f4d36941eba6c290a1f839b77f85d9579f087c22 --- modules/services/autossh.nix | 2 +- modules/system/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/autossh.nix b/modules/services/autossh.nix index e42d73f..c38b25e 100644 --- a/modules/services/autossh.nix +++ b/modules/services/autossh.nix @@ -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 diff --git a/modules/system/default.nix b/modules/system/default.nix index c484e38..4592d92 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -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