3
0
Fork 0
forked from mirrors/nixpkgs

nixos/kclock: integrate with dbus

This commit is contained in:
Johannes Arnold 2022-03-05 12:38:36 +01:00
parent 6a7c7ec68b
commit e21874098d
2 changed files with 14 additions and 0 deletions

View file

@ -169,6 +169,7 @@
./programs/iotop.nix
./programs/java.nix
./programs/k40-whisperer.nix
./programs/kclock.nix
./programs/kdeconnect.nix
./programs/kbdlight.nix
./programs/less.nix

View file

@ -0,0 +1,13 @@
{ 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 ];
};
}