cluster/services/storage: prepare for s3ql upgrades
This commit is contained in:
parent
46d2a4056a
commit
799a1dede9
2 changed files with 20 additions and 2 deletions
|
@ -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
|
||||
|
|
12
cluster/services/storage/s3ql-upgrades.nix
Normal file
12
cluster/services/storage/s3ql-upgrades.nix
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue