mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +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 = {
|
options.programs.khal = {
|
||||||
enable = mkEnableOption "khal, a CLI calendar application";
|
enable = mkEnableOption "khal, a CLI calendar application";
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "khal" { };
|
||||||
|
|
||||||
locale = mkOption {
|
locale = mkOption {
|
||||||
type = lib.types.submodule { options = localeOptions; };
|
type = lib.types.submodule { options = localeOptions; };
|
||||||
description = ''
|
description = ''
|
||||||
|
@ -197,7 +199,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.khal ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.configFile."khal/config".text = concatStringsSep "\n" ([ "[calendars]" ]
|
xdg.configFile."khal/config".text = concatStringsSep "\n" ([ "[calendars]" ]
|
||||||
++ mapAttrsToList genCalendarStr khalAccounts ++ [
|
++ mapAttrsToList genCalendarStr khalAccounts ++ [
|
||||||
|
|
Loading…
Reference in a new issue