-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
galene: init at 0.2 #109414
galene: init at 0.2 #109414
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.
Hi there. I have left some comments on the NixOS module that I hope you find helpful. Don't hesitate to ask for any clarification or help. Thanks!
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.
Only a minor change left and LGTM now.
Result of 1 package blacklisted:
1 package built:
|
} | ||
]; | ||
|
||
systemd.tmpfiles.rules = [ ] |
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 think there is still an improvement to be made here. Let me try to find some time for this on the weekend and I'll get back to you.
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.
Hey, did you have the time to look at this ? Thanks !
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 apologize, not yet. I still have plans to...
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.
Sorry for the delay. I have left some comments, though I'm not sure how helpful they are. I hope at least some of them are... Let me know if you have any questions.
description = "Enable Galene Service."; | ||
}; | ||
|
||
stateDir = mkOption { |
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.
And do we actually need a stateDir
option given all the others directory options? Maybe we can just hardcode /var/lib/galene
because the other options exist.
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 feel it's good to let people decide where they want to put their state, and even if the other options exist, they default to reside in ${cfg.stateDir}
which means you can change a single parameter (the stateDir) without having to change all of the other options.
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.
Sorry, what I specifically meant is... are any files stored directly in cfg.stateDir
, or are all files stored under the other directories specified by -data
, -groups
, -recordings
, and -static
? After looking at the upstream project for a few short minutes it looked like cfg.stateDir
doesn't actually hold any files... it just happened to have the other specified directories in it.
I didn't test this, though... so please let me know if I'm wrong.
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.
No, no files are stored directly in cfg.stateDir
but the other directories.
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.
If the only directories stored in cfg.stateDir
are already specified via other options then stateDir
as an option is redundant... right? I guess it just means more typing because less defaults...
OK, take your pick. Either way works equally fine, just non technical irrelevant opinion on my part at this point I guess 😄
No problem. I'm gonna mark some of these comments as "resolved" but i'll wait until I resolve them all to push. |
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.
Great work on this! The module looks fantastic. After the minor points already mentioned are resolved I'm approving the module portion of this PR 👍
A NixOS test would be appreciated. Some people say it should be a hard requirement every module have a NixOS test, some people say it shouldn't. I'll mention that future PRs to this package or module will greatly benefit from a NixOS test, though. Committers can get nervous to hit "merge" if there is no test.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
/marvin opt-in |
Motivation for this change
Status: draft
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)