nixos/kclock: integrate with dbus
This commit is contained in:
parent
6a7c7ec68b
commit
e21874098d
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
13
nixos/modules/programs/kclock.nix
Normal file
13
nixos/modules/programs/kclock.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue