copyparty service

This commit is contained in:
Satria 2026-04-16 19:48:06 +07:00
commit e4d1fdc40d

View file

@ -1,5 +1,14 @@
{ pkgs, ... }: { { pkgs, ... }: {
environment.systemPackages = with pkgs; [ copyparty-most ]; 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";
};
};
} }