21 lines
464 B
Nix
21 lines
464 B
Nix
|
{ config, inputs, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
imports = [
|
||
|
inputs.depot.nixosModules.ipfs-cluster
|
||
|
];
|
||
|
|
||
|
age.secrets.ipfs-cluster-secret = {
|
||
|
file = ../../../secrets/ipfs-cluster-secret.age;
|
||
|
};
|
||
|
|
||
|
services.ipfs-cluster = {
|
||
|
enable = true;
|
||
|
package = inputs.depot.packages.${pkgs.system}.ipfs-cluster;
|
||
|
consensus = "crdt";
|
||
|
dataDir = "/persist/ipfs/cluster";
|
||
|
secretFile = config.age.secrets.ipfs-cluster-secret.path;
|
||
|
openSwarmPort = true;
|
||
|
};
|
||
|
}
|