2021-05-01 08:04:49 +02:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.feedbackd;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
programs.feedbackd = {
|
2022-08-29 21:48:56 +02:00
|
|
|
enable = mkEnableOption (lib.mdDoc ''
|
2023-10-18 22:59:26 +02:00
|
|
|
the feedbackd D-BUS service and udev rules.
|
2021-05-01 08:04:49 +02:00
|
|
|
|
2023-10-18 22:59:26 +02:00
|
|
|
Your user needs to be in the `feedbackd` group to trigger effects
|
2022-08-29 21:48:56 +02:00
|
|
|
'');
|
2023-11-27 01:19:27 +01:00
|
|
|
package = mkPackageOption pkgs "feedbackd" { };
|
2021-05-01 08:04:49 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
|
|
|
|
services.dbus.packages = [ cfg.package ];
|
|
|
|
services.udev.packages = [ cfg.package ];
|
|
|
|
|
|
|
|
users.groups.feedbackd = {};
|
|
|
|
};
|
|
|
|
}
|