nix-flake/modules/system/homelab/cdn.nix
satr14 cdfdddcfec
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 14s
copyparty flake
2026-07-11 22:10:30 +07:00

16 lines
505 B
Nix

{ inputs, pkgs, ... }: {
environment.systemPackages = with pkgs; [ copyparty-most ];
nixpkgs.overlays = [ inputs.cp.overlays.default ];
imports = [ inputs.cp.nixosModules.default ];
systemd.services.copyparty = {
description = "File Sharing Service";
enable = true;
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.copyparty}/bin/copyparty -c /mnt/share/cfg/files.conf";
Restart = "on-failure";
};
};
}