mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-29 12:04:52 +00:00
29 lines
576 B
Nix
29 lines
576 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
|
|
options = {
|
|
obsidian = {
|
|
enable = lib.mkEnableOption {
|
|
description = "Enable Obsidian.";
|
|
default = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf (config.gui.enable && config.obsidian.enable) {
|
|
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
|
|
insecurePackages = [ "electron-25.9.0" ];
|
|
};
|
|
}
|