Mega cmd server service
This commit is contained in:
parent
67ce8f041c
commit
bb3a42ab6f
1 changed files with 20 additions and 0 deletions
20
modules/megasync.nix
Normal file
20
modules/megasync.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, config, ... }:
|
||||
let
|
||||
megasyncCmd = "${pkgs.megacmd}/bin/mega-cmd-server";
|
||||
in
|
||||
{
|
||||
systemd.user.services."mega-cmd-server" = {
|
||||
Unit = {
|
||||
Description = "Mega command server";
|
||||
After = [ "default.target" ];
|
||||
PartOf = [ "default.target" ];
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = megasyncCmd;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue