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.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 = { systemd.user.services.brig = {
description = "Brig Daemon"; description = "Brig Daemon";
wantedBy = [ "gnome-session.target" ]; wantedBy = [ "gnome-session.target" ];
path = [ "/run/wrappers" config.services.ipfs.package ]; path = [ "/run/wrappers" config.services.kubo.package ];
serviceConfig = { serviceConfig = {
ExecStart = "${brig}/bin/brig --repo %h/.brig daemon launch"; ExecStart = "${brig}/bin/brig --repo %h/.brig daemon launch";
#ExecStartPost = "${brig}/bin/brig fstab apply"; #ExecStartPost = "${brig}/bin/brig fstab apply";

View file

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

View file

@ -1,9 +1,9 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
cfg = config.services.ipfs; cfg = config.services.kubo;
ipfsApi = pkgs.writeTextDir "api" "/ip4/127.0.0.1/tcp/5001"; ipfsApi = pkgs.writeTextDir "api" "/ip4/127.0.0.1/tcp/5001";
in { in {
services.ipfs = { services.kubo = {
enable = true; enable = true;
swarmAddress = [ swarmAddress = [
"/ip4/0.0.0.0/tcp/4001" "/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.lidarr.dataDir = "/persist/db/lidarr";
services.jackett.dataDir = "/persist/db/jackett"; services.jackett.dataDir = "/persist/db/jackett";