mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
khal: add package option
This commit is contained in:
parent
7e769959e8
commit
939375b396
1 changed files with 3 additions and 1 deletions
|
@ -168,6 +168,8 @@ in {
|
|||
options.programs.khal = {
|
||||
enable = mkEnableOption "khal, a CLI calendar application";
|
||||
|
||||
package = mkPackageOption pkgs "khal" { };
|
||||
|
||||
locale = mkOption {
|
||||
type = lib.types.submodule { options = localeOptions; };
|
||||
description = ''
|
||||
|
@ -197,7 +199,7 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.khal ];
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
xdg.configFile."khal/config".text = concatStringsSep "\n" ([ "[calendars]" ]
|
||||
++ mapAttrsToList genCalendarStr khalAccounts ++ [
|
||||
|
|
Loading…
Reference in a new issue