cluster/services/storage: prepare for s3ql upgrades

This commit is contained in:
Max Headroom 2024-06-07 02:53:53 +02:00
parent 46d2a4056a
commit 799a1dede9
2 changed files with 20 additions and 2 deletions

View file

@ -19,8 +19,14 @@ in
garageExternal = [ "grail" "prophet" ];
};
nixos = {
external = [ ./external.nix ];
heresy = [ ./heresy.nix ];
external = [
./external.nix
./s3ql-upgrades.nix
];
heresy = [
./heresy.nix
./s3ql-upgrades.nix
];
garage = [
./garage.nix
./garage-options.nix

View file

@ -0,0 +1,12 @@
{ config, lib, ... }:
{
system.ascensions = lib.mapAttrs' (name: fs: {
name = "s3ql-${name}";
value = {
requiredBy = [ "${fs.unitName}.service" ];
before = [ "${fs.unitName}.service" ];
incantations = i: [ ];
};
}) config.services.external-storage.fileSystems;
}