-
Notifications
You must be signed in to change notification settings - Fork 0
feat(obsidian): register wiki vault with cross-platform path #1442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,24 @@ | ||
| { | ||
| config, | ||
| inputs, | ||
| pkgs, | ||
| ... | ||
| }: | ||
| let | ||
| inherit (inputs.host) isKyber; | ||
| inherit (inputs.host) isKyber isGalactica; | ||
| enabled = isKyber || isGalactica; | ||
| obsidianJson = pkgs.writeText "obsidian.json" (builtins.toJSON { | ||
| cli = true; | ||
| vaults.wiki = { | ||
| path = "${config.home.homeDirectory}/ghq/github.com/shunkakinoki/wiki"; | ||
| ts = 0; | ||
| open = true; | ||
| }; | ||
| }); | ||
| in | ||
| { | ||
| xdg.configFile."obsidian/obsidian.json" = { | ||
| source = ./obsidian.json; | ||
| enable = isKyber; | ||
| source = obsidianJson; | ||
| enable = enabled; | ||
| }; | ||
|
Comment on lines
20
to
23
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On macOS ( |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
enabledflag is used here to deploy the configuration file, but theobsidianpackage and its associated headless service are still restricted toisKyberinhome-manager/modules/obsidian/default.nixandhome-manager/services/obsidian/default.nix. If you intend to use the Obsidian CLI ongalactica, you will likely need to enable the package there as well, though the current shim's dependency onxvfb-runand thesystemdservice are Linux-specific.