1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

Merge pull request #767 from jmmaloney4/master

a few fixes for ipfs module
This commit is contained in:
Michael Hoang 2024-03-04 16:23:30 +11:00 committed by GitHub
commit 1032f0963f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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" ];