mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
obsidian stuff
This commit is contained in:
parent
34082980d6
commit
c4002dbda5
4 changed files with 767 additions and 31 deletions
41
modules/home/all/obsidian.nix
Normal file
41
modules/home/all/obsidian.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue