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"; }; };