mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
5d3dca497b
mkEnableOption already adds "Whether to enable" and ends with a ".", so remove that duplication from the help text. Also reword it slightly while at it.
16 lines
345 B
Nix
16 lines
345 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
meta.maintainers = pkgs.hamster.meta.maintainers;
|
|
|
|
options.programs.hamster.enable =
|
|
mkEnableOption "hamster, a time tracking program";
|
|
|
|
config = lib.mkIf config.programs.hamster.enable {
|
|
environment.systemPackages = [ pkgs.hamster ];
|
|
services.dbus.packages = [ pkgs.hamster ];
|
|
};
|
|
}
|