mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
12 lines
311 B
Nix
12 lines
311 B
Nix
{ lib, pkgs, config, ... }:
|
|
let
|
|
cfg = config.programs.kclock;
|
|
kclockPkg = pkgs.libsForQt5.kclock;
|
|
in {
|
|
options.programs.kclock = { enable = lib.mkEnableOption "KClock"; };
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.dbus.packages = [ kclockPkg ];
|
|
environment.systemPackages = [ kclockPkg ];
|
|
};
|
|
}
|