obsidian stuff

This commit is contained in:
Sridhar Ratnakumar 2025-11-18 10:44:05 -05:00
parent 34082980d6
commit c4002dbda5
4 changed files with 767 additions and 31 deletions

View file

@ -0,0 +1,41 @@
{ flake, pkgs, lib, config, ... }:
let
inherit (flake) inputs;
imakoPackage = inputs.imako.packages.${pkgs.system}.default;
myVault = "/home/srid/Dropbox/Vault";
in
{
imports = [
inputs.emanote.homeManagerModule
];
services.emanote = {
enable = true;
notes = [
myVault
];
# port = 7000;
package = inputs.emanote.packages.${pkgs.system}.default;
};
# TODO: Upstream as module
# port = 4009 (hardcoded)
systemd.user.services.imako = {
Unit = {
Description = "Imako for Obsidian";
After = [ "network.target" ];
};
Service = {
Type = "simple";
ExecStart = "${imakoPackage}/bin/imako ${myVault}";
# Restart = "always";
# RestartSec = 5;
};
Install = {
WantedBy = [ "default.target" ];
};
};
}