summary refs log tree commit diff
path: root/nixos/modules/programs/hamster.nix
diff options
context:
space:
mode:
authorFabian Hauser <fabian@fh2.ch>2020-06-10 17:31:46 +0200
committerFabian Hauser <fabian@fh2.ch>2020-06-10 22:05:18 +0200
commit9c95e8150ab98e6ea68304c0f9cbdcfe04020890 (patch)
tree9559324bdc94a4368a0206a2f6d97148296b31fe /nixos/modules/programs/hamster.nix
parent8c22f783549d836bef033c07926306526c1c2eed (diff)
downloadnixpkgs-9c95e8150ab98e6ea68304c0f9cbdcfe04020890.tar
nixpkgs-9c95e8150ab98e6ea68304c0f9cbdcfe04020890.tar.gz
nixpkgs-9c95e8150ab98e6ea68304c0f9cbdcfe04020890.tar.bz2
nixpkgs-9c95e8150ab98e6ea68304c0f9cbdcfe04020890.tar.lz
nixpkgs-9c95e8150ab98e6ea68304c0f9cbdcfe04020890.tar.xz
nixpkgs-9c95e8150ab98e6ea68304c0f9cbdcfe04020890.tar.zst
nixpkgs-9c95e8150ab98e6ea68304c0f9cbdcfe04020890.zip
hamster: init at 3.0.2
Diffstat (limited to 'nixos/modules/programs/hamster.nix')
-rw-r--r--nixos/modules/programs/hamster.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/modules/programs/hamster.nix b/nixos/modules/programs/hamster.nix
new file mode 100644
index 00000000000..ddf26a22fb5
--- /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 ];
+  };
+}