2022-03-10 19:12:11 +00:00
|
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.programs.kclock;
|
|
|
|
kclockPkg = pkgs.libsForQt5.kclock;
|
|
|
|
in {
|
2022-09-09 14:08:57 +00:00
|
|
|
options.programs.kclock = { enable = mkEnableOption (lib.mdDoc "Enable KClock"); };
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.dbus.packages = [ kclockPkg ];
|
|
|
|
environment.systemPackages = [ kclockPkg ];
|
|
|
|
};
|
|
|
|
}
|