From 0ed84d8068e617c77586d9d1f3f609bba1718754 Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Thu, 18 Jun 2026 20:28:34 +0200 Subject: [PATCH] Add Obsidian support and update Helium to 0.13.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce a new home module for Obsidian with enable option and BoM vault. Expose Obsidian configuration in host‑specific home‑modules files. Add Stylix theming support for Obsidian (colors, fonts, polarity, vaults). Upgrade Helium AppImage to version 0.13.4.1 and update its hash. --- hosts/Garand-Desktop/home-modules.nix | 10 ++++++++++ hosts/Garand-Laptop/home-modules.nix | 10 ++++++++++ hosts/default/home-modules.nix | 10 ++++++++++ modules/core/packages/appimages/helium.nix | 4 ++-- modules/home/default.nix | 1 + .../obsidian/default-settings/default.nix | 1 + modules/home/obsidian/default.nix | 19 +++++++++++++++++++ modules/home/obsidian/vaults/BoM.nix | 12 ++++++++++++ modules/home/obsidian/vaults/default.nix | 5 +++++ modules/home/stylix.nix | 10 ++++++++++ 10 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 modules/home/obsidian/default-settings/default.nix create mode 100644 modules/home/obsidian/default.nix create mode 100644 modules/home/obsidian/vaults/BoM.nix create mode 100644 modules/home/obsidian/vaults/default.nix diff --git a/hosts/Garand-Desktop/home-modules.nix b/hosts/Garand-Desktop/home-modules.nix index 9fcc348..5179ccd 100644 --- a/hosts/Garand-Desktop/home-modules.nix +++ b/hosts/Garand-Desktop/home-modules.nix @@ -52,6 +52,16 @@ _: { */ anki.enable = true; # Anki: spaced‑repetition flashcard program + /* + Productivity / Knowledge Management + */ + obsidian = { + enable = true; # Obsidian: Powerful knowledge base that works on top of a local folder of plain text Markdown files + vaults = { + "BoM".enable = true; # Blood of Mages: ttrpg session + }; + }; + /* XDG desktop entries (PWA) */ diff --git a/hosts/Garand-Laptop/home-modules.nix b/hosts/Garand-Laptop/home-modules.nix index 57460d4..1e45598 100644 --- a/hosts/Garand-Laptop/home-modules.nix +++ b/hosts/Garand-Laptop/home-modules.nix @@ -52,6 +52,16 @@ _: { */ anki.enable = true; # Anki: spaced‑repetition flashcard program + /* + Productivity / Knowledge Management + */ + obsidian = { + enable = true; # Obsidian: Powerful knowledge base that works on top of a local folder of plain text Markdown files + vaults = { + "BoM".enable = true; # Blood of Mages: ttrpg session + }; + }; + /* XDG desktop entries (PWA) */ diff --git a/hosts/default/home-modules.nix b/hosts/default/home-modules.nix index 00b0c73..a809678 100644 --- a/hosts/default/home-modules.nix +++ b/hosts/default/home-modules.nix @@ -52,6 +52,16 @@ _: { */ anki.enable = false; # Anki: spaced‑repetition flashcard program + /* + Productivity / Knowledge Management + */ + obsidian = { + enable = false; # Obsidian: Powerful knowledge base that works on top of a local folder of plain text Markdown files + vaults = { + "BoM".enable = false; # Blood of Mages: ttrpg session + }; + }; + /* XDG desktop entries (PWA) */ diff --git a/modules/core/packages/appimages/helium.nix b/modules/core/packages/appimages/helium.nix index 0367ee8..15a4afc 100644 --- a/modules/core/packages/appimages/helium.nix +++ b/modules/core/packages/appimages/helium.nix @@ -4,8 +4,8 @@ fetchurl, }: let pname = "helium"; - version = "0.13.3.1"; - hash = "sha256-RS+Sn42V+HjCw41N1zayMVIqlgH+i2B2IdVJwBPmw00="; + version = "0.13.4.1"; + hash = "sha256-z23up+T6bj6F+cQslmI92bEksIAw1OQHRIrmQSaaxY8="; src = fetchurl { url = "https://github.com/imputnet/helium-linux/releases/download/${version}/helium-${version}-x86_64.AppImage"; diff --git a/modules/home/default.nix b/modules/home/default.nix index daba246..9ab915c 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -8,6 +8,7 @@ _: { ./kitty ./librewolf ./noctalia + ./obsidian ./scripts ./vscodium ./xdg diff --git a/modules/home/obsidian/default-settings/default.nix b/modules/home/obsidian/default-settings/default.nix new file mode 100644 index 0000000..eed7124 --- /dev/null +++ b/modules/home/obsidian/default-settings/default.nix @@ -0,0 +1 @@ +_: {} diff --git a/modules/home/obsidian/default.nix b/modules/home/obsidian/default.nix new file mode 100644 index 0000000..7be412c --- /dev/null +++ b/modules/home/obsidian/default.nix @@ -0,0 +1,19 @@ +{ + pkgs, + lib, + config, + ... +}: { + options.obsidian.enable = lib.mkEnableOption "Obsidian"; + + config.programs.obsidian = lib.mkIf config.obsidian.enable { + enable = true; + package = pkgs.obsidian; + cli.enable = true; + }; + + imports = [ + # ./default-settings + ./vaults + ]; +} diff --git a/modules/home/obsidian/vaults/BoM.nix b/modules/home/obsidian/vaults/BoM.nix new file mode 100644 index 0000000..84f27c5 --- /dev/null +++ b/modules/home/obsidian/vaults/BoM.nix @@ -0,0 +1,12 @@ +{ + lib, + config, + ... +}: { + options.obsidian.vaults."BoM".enable = lib.mkEnableOption "Obsidian BoM vault"; + + config.programs.obsidian.vaults."BoM" = lib.mkIf config.obsidian.vaults."BoM".enable { + enable = true; + target = "Obsidian/BoM"; + }; +} diff --git a/modules/home/obsidian/vaults/default.nix b/modules/home/obsidian/vaults/default.nix new file mode 100644 index 0000000..68b74b4 --- /dev/null +++ b/modules/home/obsidian/vaults/default.nix @@ -0,0 +1,5 @@ +_: { + imports = [ + ./BoM.nix + ]; +} diff --git a/modules/home/stylix.nix b/modules/home/stylix.nix index 48cbba6..a213736 100644 --- a/modules/home/stylix.nix +++ b/modules/home/stylix.nix @@ -91,5 +91,15 @@ enable = true; colors.enable = true; }; + + obsidian = { + enable = true; + colors.enable = true; + fonts.enable = true; + polarity.enable = true; + vaultNames = [ + "BoM" + ]; + }; }; }