cluster/services/storage: better support for internal storage

This commit is contained in:
Max Headroom 2024-07-17 19:35:37 +02:00
parent 33264bf43b
commit c922615666
2 changed files with 16 additions and 0 deletions

View file

@ -11,6 +11,7 @@ in
services.storage = {
nodes = {
internal = lib.subtractLists config.services.storage.nodes.external (lib.attrNames depot.gods.fromLight);
external = [ "prophet" ];
heresy = [ "VEGAS" ];
garage = [ "grail" "prophet" "VEGAS" ];
@ -19,6 +20,9 @@ in
garageExternal = [ "grail" "prophet" ];
};
nixos = {
internal = [
./internal.nix
];
external = [
./external.nix
./s3ql-upgrades.nix

View file

@ -0,0 +1,12 @@
{ ... }:
let
storageDir = "/srv/storage";
in
{
systemd.tmpfiles.settings."00-storage" = {
"${storageDir}".d.mode = "0755";
"${storageDir}/private".d.mode = "0751";
};
}