Refactor packages
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -6,9 +6,12 @@
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
let
|
||||
selfPkgs = inputs.self.packages.${system};
|
||||
hmConfig = config.home-manager.users.${user};
|
||||
in
|
||||
{
|
||||
@@ -73,7 +76,7 @@ in
|
||||
|
||||
communityPlugins = [
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/better-word-count { };
|
||||
pkg = selfPkgs.obsidian-plugin-better-word-count;
|
||||
options = {
|
||||
statusBar = [
|
||||
{
|
||||
@@ -99,7 +102,7 @@ in
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/custom-sort { };
|
||||
pkg = selfPkgs.obsidian-plugin-custom-sort;
|
||||
options = {
|
||||
suspended = false;
|
||||
statusBarEntryEnabled = false;
|
||||
@@ -110,7 +113,7 @@ in
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/dataview { };
|
||||
pkg = selfPkgs.obsidian-plugin-dataview;
|
||||
options = {
|
||||
enableDataviewJs = true;
|
||||
enableInlineDataviewJs = true;
|
||||
@@ -120,7 +123,7 @@ in
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/excalidraw { };
|
||||
pkg = selfPkgs.obsidian-plugin-excalidraw;
|
||||
options = {
|
||||
folder = "Inbox";
|
||||
templateFilePath = "Templates";
|
||||
@@ -143,14 +146,14 @@ in
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/folder-note { };
|
||||
pkg = selfPkgs.obsidian-plugin-folder-note;
|
||||
options = {
|
||||
folderNoteHide = false;
|
||||
folderNoteStrInit = "";
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/kanban { };
|
||||
pkg = selfPkgs.obsidian-plugin-kanban;
|
||||
options = {
|
||||
move-tags = true;
|
||||
move-dates = true;
|
||||
@@ -164,7 +167,7 @@ in
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/languagetool { };
|
||||
pkg = selfPkgs.obsidian-plugin-languagetool;
|
||||
options = {
|
||||
shouldAutoCheck = true;
|
||||
pickyMode = true;
|
||||
@@ -173,7 +176,7 @@ in
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/linter { };
|
||||
pkg = selfPkgs.obsidian-plugin-linter;
|
||||
options = {
|
||||
lintOnSave = true;
|
||||
displayChanged = false;
|
||||
@@ -313,7 +316,7 @@ in
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/map-view { };
|
||||
pkg = selfPkgs.obsidian-plugin-map-view;
|
||||
options = {
|
||||
"markerIconRules" = [
|
||||
{
|
||||
@@ -399,20 +402,20 @@ in
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/minimal-settings { };
|
||||
pkg = selfPkgs.obsidian-plugin-minimal-settings;
|
||||
options = {
|
||||
editorFont = "var(--font-monospace)";
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/outliner { };
|
||||
pkg = selfPkgs.obsidian-plugin-outliner;
|
||||
options = {
|
||||
styleLists = false;
|
||||
stickCursor = "never";
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/read-it-later { };
|
||||
pkg = selfPkgs.obsidian-plugin-read-it-later;
|
||||
options = {
|
||||
inboxDir = "Inbox";
|
||||
assetsDir = "Inbox/assets";
|
||||
@@ -498,9 +501,9 @@ in
|
||||
textSnippetNote = "%content%";
|
||||
};
|
||||
}
|
||||
(pkgs.callPackage ./config/plugins/style-settings { })
|
||||
(selfPkgs.obsidian-plugin-style-settings)
|
||||
{
|
||||
pkg = pkgs.callPackage ./config/plugins/tasks { };
|
||||
pkg = selfPkgs.obsidian-plugin-tasks;
|
||||
options = {
|
||||
globalQuery = "short mode";
|
||||
globalFilter = "#todo";
|
||||
@@ -646,12 +649,12 @@ in
|
||||
};
|
||||
};
|
||||
}
|
||||
(pkgs.callPackage ./config/plugins/url-into-selection { })
|
||||
(selfPkgs.obsidian-plugin-url-into-selection)
|
||||
];
|
||||
|
||||
cssSnippets = [ ./config/snippets/file-explorer-separators.css ];
|
||||
|
||||
themes = [ (pkgs.callPackage ./config/themes/minimal { }) ];
|
||||
themes = [ selfPkgs.obsidian-theme-minimal ];
|
||||
|
||||
hotkeys = {
|
||||
"command-palette:open" = [ { key = "F1"; } ];
|
||||
|
Reference in New Issue
Block a user