mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-31 04:04:45 +00:00
a few fixes for ipfs module
This commit is contained in:
parent
511177ffe8
commit
8e102a9991
1 changed files with 3 additions and 4 deletions
|
@ -18,7 +18,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.path;
|
type = types.package;
|
||||||
default = pkgs.kubo;
|
default = pkgs.kubo;
|
||||||
# defaultText = "pkgs.kubo";
|
# defaultText = "pkgs.kubo";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
|
@ -29,7 +29,7 @@ in
|
||||||
logFile = mkOption {
|
logFile = mkOption {
|
||||||
type = types.nullOr types.path;
|
type = types.nullOr types.path;
|
||||||
default = null;
|
default = null;
|
||||||
example = "/var/tmp/lorri.log";
|
example = "/var/tmp/ipfs.log";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
The logfile to use for the ipfs service. Alternatively
|
The logfile to use for the ipfs service. Alternatively
|
||||||
{command}`sudo launchctl debug system/org.nixos.ipfs --stderr`
|
{command}`sudo launchctl debug system/org.nixos.ipfs --stderr`
|
||||||
|
@ -52,9 +52,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = [ pkgs.kubo ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
launchd.user.agents.ipfs = {
|
launchd.user.agents.ipfs = {
|
||||||
# command = with pkgs; "${ipfs}/bin/ipfs daemon";
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ProgramArguments = [ "${cfg.package}/bin/ipfs" "daemon" ]
|
ProgramArguments = [ "${cfg.package}/bin/ipfs" "daemon" ]
|
||||||
++ optionals (cfg.enableGarbageCollection) [ "--enable-gc" ];
|
++ optionals (cfg.enableGarbageCollection) [ "--enable-gc" ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue