From cdfdddcfeccfd1141cea2e780384ea56e05d88c9 Mon Sep 17 00:00:00 2001 From: satr14 Date: Sat, 11 Jul 2026 22:10:30 +0700 Subject: [PATCH] copyparty flake --- flake.nix | 1 + modules/system/homelab/cdn.nix | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 6f756b4..10f586b 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,7 @@ niri.url = "github:sodiboo/niri-flake"; mc.url = "github:Infinidoge/nix-minecraft"; + cp.url = "github:9001/copyparty"; }; outputs = inputs: let diff --git a/modules/system/homelab/cdn.nix b/modules/system/homelab/cdn.nix index a2bd042..85b4537 100644 --- a/modules/system/homelab/cdn.nix +++ b/modules/system/homelab/cdn.nix @@ -1,5 +1,7 @@ -{ pkgs, ... }: { +{ 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"; @@ -7,7 +9,7 @@ after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; 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"; }; };