aboutsummaryrefslogtreecommitdiff
path: root/modules/users/productivity/obsidian/default.nix
blob: 21b3f341dac1119c37e7e800f46099175010ae4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  config,
  lib,
  ...
}:
let
  cfg = config.nx.productivity.obsidian;
  inherit (lib) mkOption types mkIf;
in
{
  options.nx.productivity.obsidian = {
    enable = mkOption {
      description = "Obsidian note-taking application";
      type = types.bool;
      default = false;
    };
  };
  config = mkIf cfg.enable {
    programs.obsidian = {
      enable = true;
    };
  };
}