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:
commit
1032f0963f
1 changed files with 3 additions and 4 deletions
|
@ -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" ];
|
||||
|
|
Loading…
Add table
Reference in a new issue