mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-27 05:25:37 +00:00
fe938ec713
include neovim 0.9.0 and new lazy load also obsidian requires broken electron
24 lines
495 B
Nix
24 lines
495 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-04-16
|
|
nixpkgs.config.permittedInsecurePackages = [ "electron-21.4.0" ];
|
|
|
|
};
|
|
|
|
}
|