modules: add kube service

This commit is contained in:
Dmitriy Pleshevskiy 2024-07-31 16:30:02 +03:00
parent 210366db04
commit 3b896978ee
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
4 changed files with 17 additions and 2 deletions

View file

@ -25,6 +25,7 @@
# Services # Services
################################################################################ ################################################################################
local.services.i2pd.enable = true; local.services.i2pd.enable = true;
local.services.kubo.enable = true;
local.services.octoprint.enable = true; local.services.octoprint.enable = true;

View file

@ -53,8 +53,6 @@ in
# tools # tools
bind.dnsutils bind.dnsutils
kubo # ipfs
]; ];
# games # games

View file

@ -6,7 +6,9 @@
./dnscrypt-proxy2.nix ./dnscrypt-proxy2.nix
./gnupg.nix ./gnupg.nix
./i2pd.nix ./i2pd.nix
./kubo.nix
./octoprint.nix ./octoprint.nix
./vpn ./vpn
./fail2ban ./fail2ban
]; ];

View file

@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
{
options.local.services.kubo.enable = lib.mkEnableOption "kubo. The InterPlanetary File System (IPFS)";
config = lib.mkIf config.local.services.kubo.enable {
services.kubo = {
enable = true;
package = pkgs.unstable.kubo;
# required to use ipfs companion browser extension
settings.Addresses.API = [ "/ip4/127.0.0.1/tcp/5001" ];
};
};
}