mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-07 01:21:03 +01:00
treewide: add missing package options (#7575)
Add options to support more flexible module configurations. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
25deca8939
commit
03fdb31290
34 changed files with 147 additions and 70 deletions
|
|
@ -4,13 +4,17 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.services.systembus-notify;
|
||||
in
|
||||
{
|
||||
meta.maintainers = [ lib.maintainers.asymmetric ];
|
||||
|
||||
options = {
|
||||
services.systembus-notify = {
|
||||
enable = lib.mkEnableOption "systembus-notify - system bus notification daemon";
|
||||
|
||||
package = lib.mkPackageOption pkgs "systembus-notify" { };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -22,7 +26,7 @@
|
|||
systemd.user.services.systembus-notify = {
|
||||
Unit.Description = "systembus-notify daemon";
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
Service.ExecStart = "${pkgs.systembus-notify}/bin/systembus-notify";
|
||||
Service.ExecStart = lib.getExe cfg.package;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue