copyparty service
This commit is contained in:
parent
2f37165d19
commit
e4d1fdc40d
1 changed files with 10 additions and 1 deletions
|
|
@ -1,5 +1,14 @@
|
|||
{ pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [ copyparty-most ];
|
||||
|
||||
# TODO: systemd service
|
||||
systemd.services.copyparty = {
|
||||
description = "File Sharing Service";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.copyparty-most}/bin/copyparty -c /mnt/share/cfg/files.conf";
|
||||
Restart = "on-failure";
|
||||
User = "nobody";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue