diff --git a/configurations/home/srid@zest.nix b/configurations/home/srid@zest.nix index 67e66b6..0363781 100644 --- a/configurations/home/srid@zest.nix +++ b/configurations/home/srid@zest.nix @@ -8,10 +8,11 @@ in imports = [ flake.inputs.self.homeModules.default flake.inputs.self.homeModules.darwin-only - (flake.inputs.self + /modules/home/all/1password.nix) - (flake.inputs.self + /modules/home/all/juspay-vertex.nix) - (flake.inputs.self + /modules/home/claude-code) + "${homeMod}/all/1password.nix" + "${homeMod}/all/juspay-vertex.nix" + "${homeMod}/claude-code" "${homeMod}/all/juspay.nix" + "${homeMod}/all/obsidian.nix" # Remote builders # "${homeMod}/all/buildMachines" diff --git a/flake.lock b/flake.lock index 4e451d6..da3b9d3 100644 --- a/flake.lock +++ b/flake.lock @@ -317,11 +317,11 @@ "unionmount": "unionmount" }, "locked": { - "lastModified": 1763480312, - "narHash": "sha256-HffN+5HUcDNL5rZmAU9DRguwI3kcyUmkKRg+RFSoQu8=", + "lastModified": 1763605604, + "narHash": "sha256-lKeuYfl/31Yks4SR8Hx3r5Kkby6yDRhxcLyy8Y092ew=", "owner": "srid", "repo": "emanote", - "rev": "13c0099e07875164dcaef660fc77f4e7221cada2", + "rev": "f755c5344cdebab8ee839461cda2fe2112644042", "type": "github" }, "original": { diff --git a/modules/home/all/obsidian.nix b/modules/home/all/obsidian.nix index 92c8f7a..cb3995c 100644 --- a/modules/home/all/obsidian.nix +++ b/modules/home/all/obsidian.nix @@ -3,7 +3,7 @@ let inherit (flake) inputs; imakoPackage = inputs.imako.packages.${pkgs.system}.default; - myVault = "/home/srid/Dropbox/Vault"; + myVault = "${config.home.homeDirectory}/Dropbox/Vault"; in { imports = [ @@ -12,10 +12,8 @@ in services.emanote = { enable = true; - notes = [ - myVault - ]; - # port = 7000; + notes = [ myVault ]; + port = 7000; package = inputs.emanote.packages.${pkgs.system}.default; }; @@ -30,12 +28,21 @@ in Service = { Type = "simple"; ExecStart = "${imakoPackage}/bin/imako ${myVault}"; - # Restart = "always"; - # RestartSec = 5; }; Install = { WantedBy = [ "default.target" ]; }; }; + + launchd.agents.imako = lib.mkIf pkgs.stdenv.isDarwin { + 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"; + }; + }; }