modules: add kube service
This commit is contained in:
parent
210366db04
commit
3b896978ee
4 changed files with 17 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -53,8 +53,6 @@ in
|
||||||
|
|
||||||
# tools
|
# tools
|
||||||
bind.dnsutils
|
bind.dnsutils
|
||||||
|
|
||||||
kubo # ipfs
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# games
|
# games
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
14
modules/nixos/services/kubo.nix
Normal file
14
modules/nixos/services/kubo.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue