moved ipfs modules to kubo and ipfs-cluster submodules
This commit is contained in:
parent
6e01e14b33
commit
88637fe95b
4 changed files with 19 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ in
|
||||||
/etc/nixos/modules/tailscale.nix
|
/etc/nixos/modules/tailscale.nix
|
||||||
/etc/nixos/modules/backup
|
/etc/nixos/modules/backup
|
||||||
/etc/nixos/modules/ssh.nix
|
/etc/nixos/modules/ssh.nix
|
||||||
/etc/nixos/modules/ipfs.nix
|
/etc/nixos/modules/ipfs
|
||||||
|
|
||||||
# machine-specific config
|
# machine-specific config
|
||||||
./bootloader.nix
|
./bootloader.nix
|
||||||
|
|
|
||||||
6
modules/ipfs/default.nix
Normal file
6
modules/ipfs/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./kubo.nix
|
||||||
|
./ipfs-cluster.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
11
modules/ipfs/ipfs-cluster.nix
Normal file
11
modules/ipfs/ipfs-cluster.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
services.ipfs-cluster = {
|
||||||
|
enable = true;
|
||||||
|
consensus = "crdt";
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [
|
||||||
|
9096
|
||||||
|
9094
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
let
|
let
|
||||||
npins = import /etc/nixos/npins/default.nix;
|
npins = import /etc/nixos/npins/default.nix;
|
||||||
pkgs-unstable = import npins.nixpkgs-unstable { };
|
pkgs-unstable = import npins.nixpkgs-unstable { }; # TODO remove once kubo-0.43 is stable
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
warnings = [
|
warnings = [
|
||||||
Loading…
Add table
Add a link
Reference in a new issue