From 7c5ef32b505b6cfad8474d57bd7aa45bae831b51 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Fri, 27 Aug 2021 14:37:43 +0200 Subject: [PATCH] versioning: move list of changes to the top Improves readability. --- modules/versioning.nix | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/versioning.nix b/modules/versioning.nix index 6b0121e..004a2c7 100644 --- a/modules/versioning.nix +++ b/modules/versioning.nix @@ -10,19 +10,7 @@ let version = config.nix-bitcoin.configVersion; # Sorted by increasing version numbers - changes = let - mkOnionServiceChange = service: { - version = "0.0.30"; - condition = config.services.${service}.enable; - message = '' - The onion service for ${service} has been disabled in the default - configuration (`secure-node.nix`). - - To enable the onion service, add the following to your configuration: - nix-bitcon.onionServices.${service}.enable = true; - ''; - }; - in [ + changes = [ { version = "0.0.26"; condition = config.services.joinmarket.enable; @@ -114,6 +102,18 @@ let } ]; + mkOnionServiceChange = service: { + version = "0.0.30"; + condition = config.services.${service}.enable; + message = '' + The onion service for ${service} has been disabled in the default + configuration (`secure-node.nix`). + + To enable the onion service, add the following to your configuration: + nix-bitcon.onionServices.${service}.enable = true; + ''; + }; + incompatibleChanges = optionals (version != null && versionOlder lastChange) (builtins.filter (change: versionOlder change && (change.condition or true)) changes);