Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions modules/nix-darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,13 @@ in
The garbage collection strategy used by Determinate Nixd. `automatic` means that Determinate Nixd automatically collects garbage in the background while `disabled` means no garbage collection.
'';
};
telemetry.sentry.endpoint = lib.mkOption {
type = types.nullOr types.str;
default = "unset";
description = ''
The Sentry endpoint for uploading crash reports. Set to `null` to disable crash reporting.
'';
};
};
};
default = { };
Expand Down Expand Up @@ -778,9 +785,14 @@ in
]
]
);
configAttrs =
explicitlySetAttrs
// lib.optionalAttrs (dnixd.telemetry.sentry.endpoint != "unset") {
telemetry.sentry.endpoint = dnixd.telemetry.sentry.endpoint;
};
in
lib.mkIf (explicitlySetAttrs != { }) {
text = builtins.toJSON explicitlySetAttrs;
lib.mkIf (configAttrs != { }) {
text = builtins.toJSON configAttrs;
};

# List of machines for distributed Nix builds in the format
Expand Down
Loading