2021-05-03 20:48:10 +00:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.feedbackd;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
programs.feedbackd = {
|
2024-05-15 15:35:15 +00:00
|
|
|
enable = lib.mkEnableOption ''
|
2023-11-16 04:20:00 +00:00
|
|
|
the feedbackd D-BUS service and udev rules.
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
Your user needs to be in the `feedbackd` group to trigger effects
|
2024-04-21 15:54:59 +00:00
|
|
|
'';
|
2024-05-15 15:35:15 +00:00
|
|
|
package = lib.mkPackageOption pkgs "feedbackd" { };
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2021-05-03 20:48:10 +00:00
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
|
|
|
|
services.dbus.packages = [ cfg.package ];
|
|
|
|
services.udev.packages = [ cfg.package ];
|
|
|
|
|
|
|
|
users.groups.feedbackd = {};
|
|
|
|
};
|
|
|
|
}
|