-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
systemd-lock-handler: init at 2.4.1 #228063
systemd-lock-handler: init at 2.4.1 #228063
Conversation
a007131
to
a4b6d58
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.
Should build after fixing the module file.
package = mkOption { | ||
default = pkgs.systemd-lock-handler; | ||
defaultText = literalExpression "pkgs.systemd-lock-handler"; | ||
type = types.package; | ||
description = lib.mdDoc "systemd-lock-handler package to use."; | ||
}; |
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.
There seems to be a helper, like mkEnableOption
, for this:
package = mkOption { | |
default = pkgs.systemd-lock-handler; | |
defaultText = literalExpression "pkgs.systemd-lock-handler"; | |
type = types.package; | |
description = lib.mdDoc "systemd-lock-handler package to use."; | |
}; | |
package = mkPackageOption pkgs "systemd-lock-handler" { }; |
type = types.package; | ||
description = lib.mdDoc "systemd-lock-handler package to use."; | ||
}; | ||
config = mkIf cfg.enable { |
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.
This is nested inside options.services.systemd-lock-handler
(hence the build failure), so there should be a };
before this.
serviceConfig = { | ||
Documentation = "https://sr.ht/~whynothugo/systemd-lock-handler"; | ||
Slice = [ "session.slice" ]; | ||
ExecStart = "${cfg.package}/bin/systemd-lock-handler"; |
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.
ExecStart = "${cfg.package}/bin/systemd-lock-handler"; | |
ExecStart = getExe cfg.package |
|
||
buildGoModule rec { | ||
pname = "systemd-lock-handler"; | ||
version = "2.4.1"; |
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.
Version 2.4.2 has been released.
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.
Perhaps also add updateScript
?
passthru.updateScript = nix-update-script { };
Have been looking into using this so would like to see it get in :) |
Superseded by #259196 |
Description of changes
Adds systemd-lock-handler to Nixpkgs
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/
)