-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/n8n: correct configuration, webhookUrl type #241783
Conversation
I realised in NixOS#240189 I made some minor errors in the service definition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes a warning on nixos-rebuild
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test that would have caught this to nixos/tests/n8n.nix
?
@Janik-Haag How would you recommend testing for something like this? I've gone through a few of the existing test files but I'm unsure how to test that the environment variable is correctly set in the systemd unit. |
You can check if the string of |
Gave it my best shot :D Fairly straightforward |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noice, thanks for adding the testcase :D
Description of changes
(okay attempt 3. I'm really sorry for the confusion from the last PR that requested a review from everyone. I can't git at the moment apparently)
I realised in #240189 I made some minor errors in the service definition. The webhook URL configuration option wasn't properly passed through to the systemd configuration, and we can use the better
types.str
type overtypes.string
.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)