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