mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
34 lines
776 B
Nix
34 lines
776 B
Nix
{ pkgs, lib, config, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.feedbackd;
|
|
in {
|
|
options = {
|
|
programs.feedbackd = {
|
|
enable = mkEnableOption ''
|
|
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 = ''
|
|
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 = {};
|
|
};
|
|
}
|