modules/ipfs-lain: services.ipfs -> services.kubo

This commit is contained in:
Max Headroom 2022-10-15 11:06:25 +02:00
parent ac2afe3577
commit 8b7c03c95f
5 changed files with 7 additions and 7 deletions

View file

@ -42,6 +42,6 @@
services.fstrim.enable = true;
services.ipfs.dataDir = "/srv/data/ipfs";
services.kubo.dataDir = "/srv/data/ipfs";
}

View file

@ -8,7 +8,7 @@ in
systemd.user.services.brig = {
description = "Brig Daemon";
wantedBy = [ "gnome-session.target" ];
path = [ "/run/wrappers" config.services.ipfs.package ];
path = [ "/run/wrappers" config.services.kubo.package ];
serviceConfig = {
ExecStart = "${brig}/bin/brig --repo %h/.brig daemon launch";
#ExecStartPost = "${brig}/bin/brig fstab apply";

View file

@ -51,8 +51,8 @@ in {
'';
environment = {
HYPRSPACE_SWARM_KEY = config.age.secrets.ipfs-swarm-key.path;
} // (lib.optionalAttrs config.services.ipfs.enable {
HYPRSPACE_IPFS_API = config.services.ipfs.apiAddress;
} // (lib.optionalAttrs config.services.kubo.enable {
HYPRSPACE_IPFS_API = config.services.kubo.apiAddress;
});
serviceConfig = {
Restart = "on-failure";

View file

@ -1,9 +1,9 @@
{ config, lib, pkgs, ... }:
let
cfg = config.services.ipfs;
cfg = config.services.kubo;
ipfsApi = pkgs.writeTextDir "api" "/ip4/127.0.0.1/tcp/5001";
in {
services.ipfs = {
services.kubo = {
enable = true;
swarmAddress = [
"/ip4/0.0.0.0/tcp/4001"

View file

@ -13,7 +13,7 @@
}
];
services.ipfs.dataDir = "/srv/data/ipfs";
services.kubo.dataDir = "/srv/data/ipfs";
services.lidarr.dataDir = "/persist/db/lidarr";
services.jackett.dataDir = "/persist/db/jackett";