2024-06-07 03:53:53 +03:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
system.ascensions = lib.mapAttrs' (name: fs: {
|
|
|
|
name = "s3ql-${name}";
|
|
|
|
value = {
|
|
|
|
requiredBy = [ "${fs.unitName}.service" ];
|
|
|
|
before = [ "${fs.unitName}.service" ];
|
2024-06-07 04:15:20 +03:00
|
|
|
incantations = i: [
|
|
|
|
(i.runS3qlUpgrade name) # 4.0.0 -> 5.1.3
|
|
|
|
];
|
2024-06-07 03:53:53 +03:00
|
|
|
};
|
|
|
|
}) config.services.external-storage.fileSystems;
|
|
|
|
}
|