mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
16 lines
348 B
Nix
16 lines
348 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
meta.maintainers = maintainers.fabianhauser;
|
||
|
|
||
|
options.programs.hamster.enable =
|
||
|
mkEnableOption "Whether to enable hamster time tracking.";
|
||
|
|
||
|
config = lib.mkIf config.programs.hamster.enable {
|
||
|
environment.systemPackages = [ pkgs.hamster ];
|
||
|
services.dbus.packages = [ pkgs.hamster ];
|
||
|
};
|
||
|
}
|