{ lib, config, pkgs, ... }: let inherit (lib) mkIf mkOption types; in { options.smayzy.obsidian.enable = mkOption { type = types.bool; default = false; description = "obsidian"; }; config = mkIf config.smayzy.obsidian.enable { environment.systemPackages = with pkgs; [ obsidian ]; }; }