This commit is contained in:
takagemacoed 2025-08-15 23:40:25 +00:00 committed by GitHub
commit c809e57532
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -2358,8 +2358,6 @@ for this setup, you will need a [flake-enabled](https://nixos.wiki/wiki/Flakes)
# load the copyparty NixOS module # load the copyparty NixOS module
copyparty.nixosModules.default copyparty.nixosModules.default
({ pkgs, ... }: { ({ pkgs, ... }: {
# add the copyparty overlay to expose the package to the module
nixpkgs.overlays = [ copyparty.overlays.default ];
# (optional) install the package globally # (optional) install the package globally
environment.systemPackages = [ pkgs.copyparty ]; environment.systemPackages = [ pkgs.copyparty ];
# configure the copyparty module # configure the copyparty module

View file

@ -1,3 +1,4 @@
{ self }:
{ {
config, config,
pkgs, pkgs,
@ -259,6 +260,9 @@ in
command = "${getExe cfg.package} -c ${runtimeConfigPath}"; command = "${getExe cfg.package} -c ${runtimeConfigPath}";
in in
{ {
# add the copyparty overlay to expose the package to the module
nixpkgs.overlays = [ self.overlays.default ];
systemd.services.copyparty = { systemd.services.copyparty = {
description = "http file sharing hub"; description = "http file sharing hub";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];

View file

@ -11,7 +11,7 @@
flake-utils, flake-utils,
}: }:
{ {
nixosModules.default = ./contrib/nixos/modules/copyparty.nix; nixosModules.default = import ./contrib/nixos/modules/copyparty.nix { inherit self; };
overlays.default = final: prev: rec { overlays.default = final: prev: rec {
copyparty = final.python3.pkgs.callPackage ./contrib/package/nix/copyparty { copyparty = final.python3.pkgs.callPackage ./contrib/package/nix/copyparty {
ffmpeg = final.ffmpeg-full; ffmpeg = final.ffmpeg-full;