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" ];
|
garageExternal = [ "grail" "prophet" ];
|
||||||
};
|
};
|
||||||
nixos = {
|
nixos = {
|
||||||
external = [ ./external.nix ];
|
external = [
|
||||||
heresy = [ ./heresy.nix ];
|
./external.nix
|
||||||
|
./s3ql-upgrades.nix
|
||||||
|
];
|
||||||
|
heresy = [
|
||||||
|
./heresy.nix
|
||||||
|
./s3ql-upgrades.nix
|
||||||
|
];
|
||||||
garage = [
|
garage = [
|
||||||
./garage.nix
|
./garage.nix
|
||||||
./garage-options.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