cluster/services/storage: better support for internal storage
This commit is contained in:
parent
33264bf43b
commit
c922615666
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
12
cluster/services/storage/internal.nix
Normal file
12
cluster/services/storage/internal.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ ... }:
|
||||
|
||||
let
|
||||
storageDir = "/srv/storage";
|
||||
in
|
||||
|
||||
{
|
||||
systemd.tmpfiles.settings."00-storage" = {
|
||||
"${storageDir}".d.mode = "0755";
|
||||
"${storageDir}/private".d.mode = "0751";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue