mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-27 09:54:53 +00:00
25 lines
594 B
Nix
25 lines
594 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
|
|
nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" ];
|
|
|
|
};
|
|
|
|
}
|