dotfiles/modules/common/applications/obsidian.nix

25 lines
594 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-12-11
# https://forum.obsidian.md/t/electron-25-is-now-eol-please-upgrade-to-a-newer-version/72878/8
nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" ];
2022-06-14 03:43:49 +00:00
};
}