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 ];
|
|
|
|
};
|
2023-04-17 12:13:36 +00:00
|
|
|
|
|
|
|
# Broken on 2023-04-16
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [ "electron-21.4.0" ];
|
|
|
|
|
2022-06-14 03:43:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|