mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01: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 ];
|
|
};
|
|
}
|