Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a few fixes for ipfs module #767

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions modules/services/ipfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ in
};

package = mkOption {
type = types.path;
type = types.package;
default = pkgs.kubo;
# defaultText = "pkgs.kubo";
description = lib.mdDoc ''
Expand All @@ -29,7 +29,7 @@ in
logFile = mkOption {
type = types.nullOr types.path;
default = null;
example = "/var/tmp/lorri.log";
example = "/var/tmp/ipfs.log";
description = lib.mdDoc ''
The logfile to use for the ipfs service. Alternatively
{command}`sudo launchctl debug system/org.nixos.ipfs --stderr`
Expand All @@ -52,9 +52,8 @@ in
};

config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.kubo ];
environment.systemPackages = [ cfg.package ];
launchd.user.agents.ipfs = {
# command = with pkgs; "${ipfs}/bin/ipfs daemon";
serviceConfig = {
ProgramArguments = [ "${cfg.package}/bin/ipfs" "daemon" ]
++ optionals (cfg.enableGarbageCollection) [ "--enable-gc" ];
Expand Down