mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-27 19:20:43 +01:00
obsidian stuff
This commit is contained in:
@@ -31,6 +31,7 @@ My dotfiles managed with [home manager](https://github.com/nix-community/home-ma
|
|||||||
* Mimeapps
|
* Mimeapps
|
||||||
* Catppuccin
|
* Catppuccin
|
||||||
* Home Manager
|
* Home Manager
|
||||||
|
* Obsidian
|
||||||
|
|
||||||
## Screenshot
|
## Screenshot
|
||||||

|

|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
pathConfig = {
|
pathConfig = {
|
||||||
wallpaper = "Obrazy/tapety/catppuccin";
|
wallpaper = "Obrazy/tapety/catppuccin";
|
||||||
screenshot = "Obrazy/zrzuty/";
|
screenshot = "Obrazy/zrzuty/";
|
||||||
|
obsidian = "Dokumenty/obsidian";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|||||||
1
home.nix
1
home.nix
@@ -48,6 +48,7 @@
|
|||||||
./modules/gui/mako.nix
|
./modules/gui/mako.nix
|
||||||
./modules/gui/mangohud.nix
|
./modules/gui/mangohud.nix
|
||||||
./modules/gui/browsers.nix
|
./modules/gui/browsers.nix
|
||||||
|
./modules/gui/obsidian.nix
|
||||||
# status bars
|
# status bars
|
||||||
./modules/bars/ashell.nix
|
./modules/bars/ashell.nix
|
||||||
./modules/bars/waybar.nix
|
./modules/bars/waybar.nix
|
||||||
|
|||||||
@@ -177,6 +177,8 @@
|
|||||||
};
|
};
|
||||||
# nix
|
# nix
|
||||||
nil_ls.enable = true;
|
nil_ls.enable = true;
|
||||||
|
# other
|
||||||
|
marksman.enable = true;
|
||||||
};
|
};
|
||||||
keymaps = {
|
keymaps = {
|
||||||
lspBuf = {
|
lspBuf = {
|
||||||
|
|||||||
21
modules/gui/obsidian-catppuccin.nix
Normal file
21
modules/gui/obsidian-catppuccin.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "obsidian-catppuccin";
|
||||||
|
version = "main";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "obsidian";
|
||||||
|
rev = "main";
|
||||||
|
hash = "sha256-sN5k263geOtJ1mOCQGM8UdmA/71OhBI5NRwGxJwd80E=";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp theme.css manifest.json $out/
|
||||||
|
'';
|
||||||
|
}
|
||||||
65
modules/gui/obsidian.nix
Normal file
65
modules/gui/obsidian.nix
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
{
|
||||||
|
isNixOS,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
userConfig,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.obsidian = {
|
||||||
|
enable = true;
|
||||||
|
package = lib.mkIf (!isNixOS) null;
|
||||||
|
|
||||||
|
defaultSettings = {
|
||||||
|
app = {
|
||||||
|
vimMode = true;
|
||||||
|
alwaysUpdateLinks = true;
|
||||||
|
attachmentFolderPath = "media";
|
||||||
|
newLinkFormat = "relative";
|
||||||
|
newFileLocation = "current";
|
||||||
|
useMarkdownLinks = true;
|
||||||
|
showUnsupportedFiles = true;
|
||||||
|
pdfExportSettings = {
|
||||||
|
pageSize = "A4";
|
||||||
|
landscape = false;
|
||||||
|
margin = "0";
|
||||||
|
downscalePercent = 100;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
themes = [
|
||||||
|
(pkgs.callPackage ./obsidian-catppuccin.nix { })
|
||||||
|
];
|
||||||
|
|
||||||
|
corePlugins = [
|
||||||
|
"file-explorer"
|
||||||
|
"global-search"
|
||||||
|
"switcher"
|
||||||
|
"graph"
|
||||||
|
"backlink"
|
||||||
|
"canvas"
|
||||||
|
"outgoing-link"
|
||||||
|
"tag-pane"
|
||||||
|
"page-preview"
|
||||||
|
"note-composer"
|
||||||
|
"command-palette"
|
||||||
|
"editor-status"
|
||||||
|
"bookmarks"
|
||||||
|
"outline"
|
||||||
|
"word-count"
|
||||||
|
"bases"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
vaults = {
|
||||||
|
"Notatki-szkolne" = {
|
||||||
|
target = "${userConfig.pathConfig.obsidian}/notatki-szkolne";
|
||||||
|
};
|
||||||
|
"Studia" = {
|
||||||
|
target = "${userConfig.pathConfig.obsidian}/ZUT-notatki";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user