2024-04-20 13:42:06 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2022-06-14 03:43:49 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
2023-04-17 12:13:36 +00:00
|
|
|
|
2024-01-02 00:48:08 +00:00
|
|
|
# Broken on 2023-12-11
|
|
|
|
# https://forum.obsidian.md/t/electron-25-is-now-eol-please-upgrade-to-a-newer-version/72878/8
|
2024-12-08 01:18:30 +00:00
|
|
|
insecurePackages = [ "electron-25.9.0" ];
|
2022-06-14 03:43:49 +00:00
|
|
|
};
|
|
|
|
}
|