cdn thumbnail support
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 27s
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 27s
This commit is contained in:
parent
af7663c618
commit
15c912d324
1 changed files with 7 additions and 4 deletions
|
|
@ -1,18 +1,21 @@
|
|||
{ pkgs, ... }: let
|
||||
version = "v1.20.18";
|
||||
executable = pkgs.fetchurl {
|
||||
python = pkgs.python3.withPackages (ps: [ ps.pillow ]);
|
||||
script = let
|
||||
version = "v1.20.18";
|
||||
in pkgs.fetchurl {
|
||||
url = "https://github.com/9001/copyparty/releases/download/${version}/copyparty-en.py";
|
||||
hash = "sha256-8SBrKaLPat80n8sONKQYFeFSQXUnCYtwcOU7SR52h7E=";
|
||||
};
|
||||
};
|
||||
in {
|
||||
systemd.services.copyparty = {
|
||||
description = "File Sharing Service";
|
||||
enable = true;
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.ffmpeg ];
|
||||
serviceConfig = {
|
||||
# ExecStart = "${pkgs.copyparty-most}/bin/copyparty -c /mnt/share/cfg/files.conf";
|
||||
ExecStart = "${pkgs.python3}/bin/python3 ${executable} -c /mnt/share/cfg/files.conf";
|
||||
ExecStart = "${python}/bin/python3 ${script} -c /mnt/share/cfg/files.conf";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue