make work in wsl, emanote

This commit is contained in:
Sridhar Ratnakumar 2021-09-30 11:19:27 -04:00
parent 01c7e49ed2
commit 5f4708b35c

View file

@ -3,7 +3,8 @@ let
emanote = inputs.emanote.outputs.defaultPackage.${system};
in
{
systemd.user.services.emanote = {
# Global service, rather than user service, as the latter doesn't work in NixOS-WSL
systemd.services.emanote = {
description = "Emanote ~/Documents/Notes";
after = [ "network.target" ];
wantedBy = [ "default.target" ];
@ -11,6 +12,7 @@ in
PORT = "7000";
};
serviceConfig = {
User = "srid";
Restart = "always";
ExecStart = "${emanote}/bin/emanote -L /home/srid/Documents/Notes";
};