copyparty flake
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 14s

This commit is contained in:
Satria 2026-07-11 22:10:30 +07:00
commit cdfdddcfec
2 changed files with 5 additions and 2 deletions

View file

@ -12,6 +12,7 @@
niri.url = "github:sodiboo/niri-flake"; niri.url = "github:sodiboo/niri-flake";
mc.url = "github:Infinidoge/nix-minecraft"; mc.url = "github:Infinidoge/nix-minecraft";
cp.url = "github:9001/copyparty";
}; };
outputs = inputs: let outputs = inputs: let

View file

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