Open
Conversation
Moves obsidian installation out of desktop module and darwin.nix into its own home-manager module. Adds a system module with obsidian and obsidian-readonly groups for vault access sharing via filesystem permissions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
homebrew.casks and homebrew.masApps are system-level options, not home-manager options. Moves obsidian cask and Web Clipper masApp to the system obsidian module. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Packages obsidian-headless (ob) as a buildNpmPackage derivation and installs it on all systems via the obsidian home module. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Creates ~/workspace/vaults with obsidian group ownership, setgid, and ACLs for both obsidian (r/w) and obsidian-readonly groups. Syncs the Notes vault via obsidian-headless on each home-manager activation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
Moves all Obsidian configuration into dedicated home-manager and system modules with vault directory setup, group-based access control, and headless sync.
Details
Extracts Obsidian package installation from
home/modules/desktop/default.nixandhome/users/crdant/darwin.nixinto a dedicatedhome/modules/obsidianmodule for the user-level config andsystems/modules/obsidianfor system-level concerns.The system module creates two groups for vault access sharing:
obsidianfor read/write andobsidian-readonlyfor read-only. Homebrew cask and Web Clipper masApp installation live here sincehomebrew.*options are system-level, not home-manager.The home module installs
obsidian-headless(the official CLI for Obsidian Sync) on all platforms and the Obsidian GUI on Linux. On activation it creates~/workspace/vaults, sets group ownership and setgid for theobsidiangroup, applies ACLs for both groups (platform-appropriate —setfaclon Linux,chmod +aon macOS), and syncs the "Notes" vault. First-time setup requiresob loginandob sync-setup --vault Notesbefore the sync activation will run.Adds the
obsidian-headlessNix package built withbuildNpmPackagefrom the official npm distribution.🤖 Generated with Claude Code