From 85da8ed4dfbfdfd9e1990bef6fdc5d2cce29efd0 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 30 Sep 2024 09:12:17 +0700 Subject: [PATCH] obsidian: added obsidian setting --- home/programs/default.nix | 1 + home/programs/obsidian.nix | 12 ++++++++++++ options/programs.nix | 1 + profiles/castle.nix | 1 + 4 files changed, 15 insertions(+) create mode 100644 home/programs/obsidian.nix diff --git a/home/programs/default.nix b/home/programs/default.nix index 7f44a03..5c7c70a 100644 --- a/home/programs/default.nix +++ b/home/programs/default.nix @@ -22,6 +22,7 @@ ./nextcloud.nix ./nnn.nix ./node.nix + ./obsidian.nix ./slack.nix ./spotify.nix ./starship.nix diff --git a/home/programs/obsidian.nix b/home/programs/obsidian.nix new file mode 100644 index 0000000..76799a5 --- /dev/null +++ b/home/programs/obsidian.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.profile.home.programs.obsidian; + inherit (lib) mkIf; +in +{ + config = mkIf cfg.enable { + home.packages = with pkgs; [ + obsidian + ]; + }; +} diff --git a/options/programs.nix b/options/programs.nix index 0a8e7d7..28548d6 100644 --- a/options/programs.nix +++ b/options/programs.nix @@ -111,6 +111,7 @@ bruno.enable = lib.mkEnableOption "bruno"; zoom.enable = lib.mkEnableOption "zoom"; elisa.enable = lib.mkEnableOption "elisa"; + obsidian.enable = lib.mkEnableOption "obsidian"; }; programs = { diff --git a/profiles/castle.nix b/profiles/castle.nix index 59d66c0..b0d5b05 100644 --- a/profiles/castle.nix +++ b/profiles/castle.nix @@ -92,6 +92,7 @@ in bruno.enable = true; zoom.enable = true; elisa.enable = true; + obsidian.enable = true; }; programs.easyeffects.enable = true; programs.wezterm.enable = true;