2020-07-01 23:20:18 +00:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
let
|
|
|
|
notesDir = "${config.home.homeDirectory}/git/zettelkasten";
|
2020-08-01 20:05:35 +00:00
|
|
|
cmd = "${pkgs.myHaskellPackages.neuron}/bin/neuron -d ${notesDir} rib -w -s 127.0.0.1:8002";
|
2020-07-01 23:20:18 +00:00
|
|
|
in {
|
|
|
|
systemd.user.services.neuron = {
|
|
|
|
Unit.Description = "Neuron zettelkasten service";
|
|
|
|
Install.WantedBy = [ "graphical-session.target" ];
|
2020-07-03 13:07:03 +00:00
|
|
|
Service = {
|
|
|
|
ExecStart = cmd;
|
|
|
|
Restart = "always";
|
|
|
|
};
|
2020-07-01 23:20:18 +00:00
|
|
|
};
|
|
|
|
}
|