I'm trying to wrap neuron rib -w in a systemd file to always watch for changes in my zettelkasten directory however I'm greeted with a failed systemd service everytime . The error below:
Jun 24 21:36:29 workstation neuron[29684]: neuron: HOME: getHomeDirectory:getEnv: does not exist (no environment variable)
I'm not really sure why, since $HOME is set fine.
Systemd file:
[Unit]
Description=make Neuron watch for changes and regenerate static files in .neuron/output
It doesn't look like that unit is running under your user. You should add a User = sergiu line somewhere. Then if it still doesn't find HOME, I'd hardcode the path: neuron rib -w -d /home/path/to/zettelkasten
It doesn't look like that unit is running under your user. You should add a User = sergiu line somewhere. Then if it still doesn't find HOME, I'd hardcode the path: neuron rib -w -d /home/path/to/zettelkasten
I'm trying to wrap neuron rib -w in a systemd file to always watch for changes in my zettelkasten directory however I'm greeted with a failed systemd service everytime . The error below:
Jun 24 21:36:29 workstation neuron[29684]: neuron: HOME: getHomeDirectory:getEnv: does not exist (no environment variable)
I'm not really sure why, since $HOME is set fine.
Systemd file:
[Unit]
Description=make Neuron watch for changes and regenerate static files in .neuron/output
[Service]
ExecStart=/home/sergiu/.nix-profile/bin/neuron rib -w
[Install]
WantedBy=multi-user.target
/home/sergiu/.nix-profile/bin/neuron rib -w runs fine when alone in terminal
Can anyone give some pointers?
It doesn't look like that unit is running under your user. You should add a
User = sergiu
line somewhere. Then if it still doesn't find HOME, I'd hardcode the path:neuron rib -w -d /home/path/to/zettelkasten
Nadrieril said:
Thanks a lot, that did it!
Would be cool to document systemd use via home-manager (nix) in the docs.
https://github.com/srid/neuron/pull/249