aboutsummaryrefslogtreecommitdiffstats
path: root/modules/office/calcurse/default.nix
blob: 03bf9c1e44855dbfcb2727f7f76ca1ea3d0754d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Text-based calendar and scheduling application
{
  config,
  lib,
  pkgs,
  ...
}:
{
  options.office.calcurse = {
    enable = lib.mkEnableOption "Enables calcurse.";
    package = lib.mkOption {
      type = lib.types.package;
      readOnly = true;
      default = pkgs.calcurse;
      description = "The calcurse package to use.";
    };
  };

  config = lib.mkIf config.office.calcurse.enable {
    home.packages = [ config.office.calcurse.package ];
  };
}