1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 18:57:08 +00:00

a few fixes for ipfs module

This commit is contained in:
Jack Maloney 2023-08-30 09:14:14 -05:00
parent 511177ffe8
commit 8e102a9991
No known key found for this signature in database

View file

@ -18,7 +18,7 @@ in
};
package = mkOption {
type = types.path;
type = types.package;
default = pkgs.kubo;
# defaultText = "pkgs.kubo";
description = lib.mdDoc ''
@ -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`
@ -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" ];