b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
33 lines
798 B
Nix
33 lines
798 B
Nix
{ pkgs, lib, config, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.feedbackd;
|
|
in {
|
|
options = {
|
|
programs.feedbackd = {
|
|
enable = mkEnableOption (lib.mdDoc ''
|
|
Whether to enable the feedbackd D-BUS service and udev rules.
|
|
|
|
Your user needs to be in the `feedbackd` group to trigger effects.
|
|
'');
|
|
package = mkOption {
|
|
description = lib.mdDoc ''
|
|
Which feedbackd package to use.
|
|
'';
|
|
type = types.package;
|
|
default = pkgs.feedbackd;
|
|
defaultText = literalExpression "pkgs.feedbackd";
|
|
};
|
|
};
|
|
};
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
services.dbus.packages = [ cfg.package ];
|
|
services.udev.packages = [ cfg.package ];
|
|
|
|
users.groups.feedbackd = {};
|
|
};
|
|
}
|