2022-03-05 11:38:36 +00:00
|
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.programs.kclock;
|
|
|
|
kclockPkg = pkgs.libsForQt5.kclock;
|
|
|
|
in {
|
2024-04-17 12:37:58 +01:00
|
|
|
options.programs.kclock = { enable = lib.mkEnableOption "KClock"; };
|
2022-03-05 11:38:36 +00:00
|
|
|
|
2024-04-17 12:37:58 +01:00
|
|
|
config = lib.mkIf cfg.enable {
|
2022-03-05 11:38:36 +00:00
|
|
|
services.dbus.packages = [ kclockPkg ];
|
|
|
|
environment.systemPackages = [ kclockPkg ];
|
|
|
|
};
|
|
|
|
}
|