mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
Merge 05e5201117
into 43a19779c1
This commit is contained in:
commit
c809e57532
|
@ -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
|
||||||
|
|
|
@ -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" ];
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue