mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
142074c2a8
Fix descriptions that don't account for (1) the "Whether to enable" prefix or (2) the automatically added trailing dot.
34 lines
779 B
Nix
34 lines
779 B
Nix
{ pkgs, lib, config, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.feedbackd;
|
|
in {
|
|
options = {
|
|
programs.feedbackd = {
|
|
enable = mkEnableOption (lib.mdDoc ''
|
|
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 = {};
|
|
};
|
|
}
|