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
earlyoom service: init #23135
earlyoom service: init #23135
Conversation
@ljli, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @bjornfor and @offlinehacker to be potential reviewers. |
{ lib, stdenv, fetchFromGitHub }: | ||
|
||
stdenv.mkDerivation { | ||
name = "earlyoom"; |
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.
Name should include the version. Like this:
stdenv.mkDerivation rec {
name = "earlyoom-${version}";
version = ...
...
ff951bb
to
7c655a1
Compare
${pkgs.earlyoom}/bin/earlyoom \ | ||
-m ${toString ecfg.freeMemThreshold} \ | ||
-s ${toString ecfg.freeSwapThreshold} \ | ||
${if ecfg.useKernelOOMKiller then "-k" else ""} \ |
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 cond then str else "" = optionalString cond str
.
homepage = https://github.com/rfjakob/earlyoom; | ||
license = lib.licenses.mit; | ||
platforms = lib.platforms.linux; | ||
maintainers = with lib.maintainers; [ ]; |
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.
maintainers
is empty by default; perhaps you'd consider adding yourself?
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.
Not for now. But I'll keep an eye on it, if that's ok.
9470969
to
8a6dcf5
Compare
8a6dcf5
to
db30cff
Compare
The underlying program got merged in the meantime. I'm not using this service anymore, so I'll probably won't maintain this. It should still work, though. Maybe we want this anyway, otherwise feel free to close. |
Wat, why we didn't merge this pull request. I might want to use it. |
@offlinehacker ah, I interpreted the lack of a response to the last comment as a lack of interest. If you want it, please go ahead and integrate it :) |
Linux oom killer is so bad, I will use this in my dev environments, so I'm merging this. |
Motivation for this change
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)