-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
nixos/livekit: init, nixos/lk-jwt-service: init #399627
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
Conversation
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.
I did a first pass to grasp the structure of this and I have some questions on how to best represent the configuration.
Some of the changes apply to both modules, but I only commented on them once.
42cc827
to
a066c44
Compare
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.
Second pass.
Looks like you created broken references when refactoring the module. Are you using a language server? I will recommend nil
just in case.
I'm now pretty confident about the livekit configuration: We pass in both the configuration and a dedicated keys file.
cb22c9e
to
d3f22ba
Compare
I am using |
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.
Third pass, a bit smaller because we're slowly getting there.
What I would like next, as previously announced, is a NixOS test. I'm not sure about the scope, whether one for LiveKit itself makes sense or one for the Element Call stack would be more appropriate.
Now we most likely won't place calls on that test, but it should demonstrate the integration of these options with each other and provide some guarantees, that it keeps working.
2153258
to
08caf22
Compare
c449c3c
to
76c5a99
Compare
Hi, I'd prefer not to bother writing a test, as I have no idea how to do so. Could either you write one or this could be merged and a test could be added later? Thanks. |
1c18b28
to
10ecf1f
Compare
Huh, despite running treefmt, newlines were removed in all-tests.nix |
Please don't reformat all-tests.nix and restore the removed blank lines in the packages. |
I will. Do you think these tests are enough, though? |
They're a start. Ideally we could show some crucial interaction between these services (or between lk-jwt-service and element-call) works. |
Right. Is that needed for this PR? I really have no idea how the internals work so this will require a deep dive into livekit documentation / internals for me. |
Okay, I think formatting should be good now. |
ae14102
to
8569130
Compare
Why did that check fail? |
Github is rate-limiting its own CI, this happens sometimes. This particular fail shouldn't be an issue. |
Ah, seems to have worked now, thanks. |
Thank you! |
Things done
Added a module for lk-jwt-service, and livekit, needed for running element-call (already packaged). For a usage example, see here: https://git.henryhiles.com/Henry-Hiles/nixos/src/branch/main/clients/quadraticserver/element-call.nix
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.