mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
obsidian: on mac
This commit is contained in:
parent
8983896a17
commit
f0f0d72b16
3 changed files with 21 additions and 13 deletions
|
|
@ -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"
|
||||
|
|
|
|||
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue