dotfiles/modules/applications/obsidian.nix

20 lines
396 B
Nix
Raw Normal View History

2022-06-14 03:43:49 +00:00
{ config, pkgs, lib, ... }: {
2022-12-21 21:18:03 +00:00
options = {
obsidian = {
enable = lib.mkEnableOption {
description = "Enable Obsidian.";
default = false;
};
};
};
config = lib.mkIf (config.gui.enable && config.obsidian.enable) {
2022-06-14 03:43:49 +00:00
unfreePackages = [ "obsidian" ];
home-manager.users.${config.user} = {
home.packages = with pkgs; [ obsidian ];
};
};
}