diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-06-16 23:08:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 23:08:45 +0200 |
commit | 75e756b8e121e8b26557a5c6b00e4e9bcc051fd2 (patch) | |
tree | 9087e5625dfc6b2db1dee1b619a129d2cd70812c /nixos | |
parent | 1419b35e77b8dc27e60b050330a6b62836a71f3e (diff) | |
parent | 9c95e8150ab98e6ea68304c0f9cbdcfe04020890 (diff) |
Merge pull request #90051 from fabianhauser/hamster-time-tracker
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/programs/hamster.nix | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index c82c70a7b8695..448d432853d34 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -126,6 +126,7 @@ ./programs/gpaste.nix ./programs/gnupg.nix ./programs/gphoto2.nix + ./programs/hamster.nix ./programs/iftop.nix ./programs/iotop.nix ./programs/java.nix diff --git a/nixos/modules/programs/hamster.nix b/nixos/modules/programs/hamster.nix new file mode 100644 index 0000000000000..ddf26a22fb536 --- /dev/null +++ b/nixos/modules/programs/hamster.nix @@ -0,0 +1,15 @@ +{ 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 ]; + }; +} |