dotfiles/modules/common/applications/obsidian.nix

24 lines
495 B
Nix
Raw Permalink 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 ];
};
# Broken on 2023-04-16
nixpkgs.config.permittedInsecurePackages = [ "electron-21.4.0" ];
2022-06-14 03:43:49 +00:00
};
}