Skip to content

Commit

Permalink
Merge pull request #767 from jmmaloney4/master
Browse files Browse the repository at this point in the history
a few fixes for ipfs module
  • Loading branch information
Enzime authored Mar 4, 2024
2 parents 530f265 + 8e102a9 commit 1032f09
Showing 1 changed file with 3 additions and 4 deletions.
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

0 comments on commit 1032f09

Please sign in to comment.