mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
put nixpkgs.overlays into nixosModules.default so user no need to do it
This commit is contained in:
parent
c3cc2ddeae
commit
05e5201117
|
@ -2278,8 +2278,6 @@ for this setup, you will need a [flake-enabled](https://nixos.wiki/wiki/Flakes)
|
|||
# load the copyparty NixOS module
|
||||
copyparty.nixosModules.default
|
||||
({ pkgs, ... }: {
|
||||
# add the copyparty overlay to expose the package to the module
|
||||
nixpkgs.overlays = [ copyparty.overlays.default ];
|
||||
# (optional) install the package globally
|
||||
environment.systemPackages = [ pkgs.copyparty ];
|
||||
# configure the copyparty module
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{ self }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
|
@ -259,6 +260,9 @@ in
|
|||
command = "${getExe cfg.package} -c ${runtimeConfigPath}";
|
||||
in
|
||||
{
|
||||
# add the copyparty overlay to expose the package to the module
|
||||
nixpkgs.overlays = [ self.overlays.default ];
|
||||
|
||||
systemd.services.copyparty = {
|
||||
description = "http file sharing hub";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
flake-utils,
|
||||
}:
|
||||
{
|
||||
nixosModules.default = ./contrib/nixos/modules/copyparty.nix;
|
||||
nixosModules.default = import ./contrib/nixos/modules/copyparty.nix { inherit self; };
|
||||
overlays.default = final: prev: rec {
|
||||
copyparty = final.python3.pkgs.callPackage ./contrib/package/nix/copyparty {
|
||||
ffmpeg = final.ffmpeg-full;
|
||||
|
|
Loading…
Reference in a new issue