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