mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
make work in wsl, emanote
This commit is contained in:
parent
01c7e49ed2
commit
5f4708b35c
1 changed files with 3 additions and 1 deletions
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue