18 lines
344 B
Nix
18 lines
344 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
cfg = config.local.programs.calendar;
|
|
|
|
mkCalOpts = name: {
|
|
enable = lib.mkEnableOption name;
|
|
package = lib.mkPackageOption pkgs name { };
|
|
};
|
|
in
|
|
{
|
|
options.local.programs.calendar = {
|
|
khal = mkCalOpts "khal";
|
|
};
|
|
|
|
config.home.packages =
|
|
lib.optional cfg.khal.enable cfg.khal.package;
|
|
}
|