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 = {
|
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
|
||||||
|
|
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