versioning: move list of changes to the top
Improves readability.
This commit is contained in:
parent
b15d71605e
commit
7c5ef32b50
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user