Skip to content

Commit

Permalink
a few fixes for ipfs module
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmaloney4 committed Aug 30, 2023
1 parent 511177f commit 8e102a9
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 8e102a9

Please sign in to comment.