imako: upstreamed

This commit is contained in:
Sridhar Ratnakumar 2025-11-22 18:27:44 -05:00
parent 986edde096
commit 33935ea0b2
2 changed files with 9 additions and 31 deletions

View file

@ -1,13 +1,13 @@
{ flake, pkgs, lib, config, ... }:
{ flake, pkgs, config, ... }:
let
inherit (flake) inputs;
imakoPackage = inputs.imako.packages.${pkgs.system}.default;
myVault = "${config.home.homeDirectory}/Dropbox/Vault";
in
{
imports = [
inputs.emanote.homeManagerModule
inputs.imako.homeManagerModules.imako
];
services.emanote = {
@ -17,32 +17,10 @@ in
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}";
};
Install = {
WantedBy = [ "default.target" ];
};
};
launchd.agents.imako = lib.mkIf pkgs.stdenv.isDarwin {
services.imako = {
enable = true;
config = {
ProgramArguments = [ "${imakoPackage}/bin/imako" myVault ];
RunAtLoad = true;
KeepAlive = false;
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/imako.log";
StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/imako.err";
};
package = inputs.imako.packages.${pkgs.system}.default;
vaultDir = myVault;
port = 4009;
};
}