nixpkgs/nixos/modules/programs/feedbackd.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
575 B
Nix
Raw Normal View History

2021-05-01 06:04:49 +00:00
{ pkgs, lib, config, ... }:
let
cfg = config.programs.feedbackd;
in {
options = {
programs.feedbackd = {
enable = lib.mkEnableOption ''
the feedbackd D-BUS service and udev rules.
2021-05-01 06:04:49 +00:00
Your user needs to be in the `feedbackd` group to trigger effects
'';
package = lib.mkPackageOption pkgs "feedbackd" { };
2021-05-01 06:04:49 +00:00
};
};
config = lib.mkIf cfg.enable {
2021-05-01 06:04:49 +00:00
environment.systemPackages = [ cfg.package ];
services.dbus.packages = [ cfg.package ];
services.udev.packages = [ cfg.package ];
users.groups.feedbackd = {};
};
}