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
|
||||
etc.
|
||||
'';
|
||||
type = with types; attrsOf (oneOf [ str (listOf str) ]);
|
||||
type = with types; lazyAttrsOf (oneOf [ str (listOf str) ]);
|
||||
default = [];
|
||||
};
|
||||
otherNodes = mkOption {
|
||||
description = "Other nodes in the group.";
|
||||
type = with types; attrsOf (functionTo (listOf str));
|
||||
type = with types; lazyAttrsOf (functionTo (listOf str));
|
||||
default = [];
|
||||
};
|
||||
nixos = mkOption {
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue