mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat[client]: add obsidian module
This commit is contained in:
parent
b89e63e0f2
commit
7dd0366330
8 changed files with 383 additions and 12 deletions
131
modules/home/common/obsidian.nix
Normal file
131
modules/home/common/obsidian.nix
Normal file
|
|
@ -0,0 +1,131 @@
|
|||
{ lib, config, pkgs, nixosConfig ? config, ... }:
|
||||
let
|
||||
moduleName = "obsidian";
|
||||
inherit (nixosConfig.repo.secrets.common.obsidian) userIgnoreFilters;
|
||||
in
|
||||
{
|
||||
options.swarselmodules.${moduleName} = lib.mkEnableOption "enable ${moduleName} with settings";
|
||||
config = lib.mkIf config.swarselmodules.${moduleName} {
|
||||
programs.obsidian =
|
||||
let
|
||||
name = "Main";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
defaultSettings = {
|
||||
app = {
|
||||
attachmentFolderPath = "attachments";
|
||||
alwaysUpdateLinks = true;
|
||||
spellcheck = false;
|
||||
inherit userIgnoreFilters;
|
||||
vimMode = false;
|
||||
newFileLocation = "current";
|
||||
};
|
||||
corePlugins = [
|
||||
"backlink"
|
||||
"bookmarks"
|
||||
"canvas"
|
||||
"command-palette"
|
||||
"daily-notes"
|
||||
"editor-status"
|
||||
"file-explorer"
|
||||
"file-recovery"
|
||||
"global-search"
|
||||
"graph"
|
||||
"note-composer"
|
||||
"outgoing-link"
|
||||
"outline"
|
||||
"page-preview"
|
||||
"properties"
|
||||
"slides"
|
||||
"switcher"
|
||||
"tag-pane"
|
||||
"templates"
|
||||
"word-count"
|
||||
];
|
||||
communityPlugins = with pkgs.swarsel-nix; [
|
||||
advanced-tables
|
||||
calendar
|
||||
file-hider
|
||||
linter
|
||||
omnisearch
|
||||
sort-and-permute-lines
|
||||
tag-wrangler
|
||||
tray
|
||||
];
|
||||
};
|
||||
vaults = {
|
||||
${name} = {
|
||||
target = "./Obsidian/${name}";
|
||||
settings = {
|
||||
appearance = {
|
||||
baseFontSize = lib.mkForce 19;
|
||||
};
|
||||
communityPlugins = with pkgs.swarsel-nix; [
|
||||
{
|
||||
pkg = advanced-tables;
|
||||
enable = true;
|
||||
}
|
||||
{
|
||||
pkg = calendar;
|
||||
enable = true;
|
||||
}
|
||||
{
|
||||
pkg = sort-and-permute-lines;
|
||||
enable = true;
|
||||
}
|
||||
{
|
||||
pkg = tag-wrangler;
|
||||
enable = true;
|
||||
}
|
||||
{
|
||||
pkg = tray;
|
||||
enable = true;
|
||||
settings = {
|
||||
launchOnStartup = false;
|
||||
hideOnLaunch = true;
|
||||
runInBackground = true;
|
||||
hideTaskbarIcon = false;
|
||||
createTrayIcon = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = file-hider;
|
||||
enable = true;
|
||||
settings =
|
||||
{
|
||||
hidden = true;
|
||||
hiddenList = [
|
||||
"attachments"
|
||||
"images"
|
||||
"ltximg"
|
||||
"logseq"
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = linter;
|
||||
enable = true;
|
||||
settings = {
|
||||
auto-correct-common-misspellings = {
|
||||
skip-words-with-multiple-capitals = true;
|
||||
};
|
||||
convert-bullet-list-markers = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = omnisearch;
|
||||
enable = true;
|
||||
settings = {
|
||||
hideExcluded = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
# nomacs
|
||||
libreoffice-qt
|
||||
xournalpp
|
||||
obsidian
|
||||
# obsidian
|
||||
# spotify
|
||||
vesktop # discord client
|
||||
# nextcloud-client # enables a systemd service that I do not want
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue