mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-27 00:45:37 +00:00
20 lines
396 B
Nix
20 lines
396 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 ];
|
|
};
|
|
};
|
|
|
|
}
|