Compare commits
2 commits
fa57c810c0
...
c922615666
Author | SHA1 | Date | |
---|---|---|---|
c922615666 | |||
33264bf43b |
3 changed files with 18 additions and 2 deletions
|
@ -23,12 +23,12 @@ in
|
||||||
* X evaluators, Y smallBuilders, Z bigBuilders
|
* X evaluators, Y smallBuilders, Z bigBuilders
|
||||||
etc.
|
etc.
|
||||||
'';
|
'';
|
||||||
type = with types; attrsOf (oneOf [ str (listOf str) ]);
|
type = with types; lazyAttrsOf (oneOf [ str (listOf str) ]);
|
||||||
default = [];
|
default = [];
|
||||||
};
|
};
|
||||||
otherNodes = mkOption {
|
otherNodes = mkOption {
|
||||||
description = "Other nodes in the group.";
|
description = "Other nodes in the group.";
|
||||||
type = with types; attrsOf (functionTo (listOf str));
|
type = with types; lazyAttrsOf (functionTo (listOf str));
|
||||||
default = [];
|
default = [];
|
||||||
};
|
};
|
||||||
nixos = mkOption {
|
nixos = mkOption {
|
||||||
|
|
|
@ -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…
Add table
Reference in a new issue