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