From 9d223d6ca7c49f57dc8b31a511f4f3ee975f2653 Mon Sep 17 00:00:00 2001 From: Toast <39011842+toast003@users.noreply.github.com> Date: Mon, 12 Jan 2026 00:08:57 +0100 Subject: [PATCH] nixos: use mkPackageOption instead of mkOption (#1193) This gets rid of a warning when trying to build a system with documentation.nixos.includeAllModules enabled --- contrib/nixos/modules/copyparty.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/contrib/nixos/modules/copyparty.nix b/contrib/nixos/modules/copyparty.nix index 6bb51b68..612672ee 100644 --- a/contrib/nixos/modules/copyparty.nix +++ b/contrib/nixos/modules/copyparty.nix @@ -69,11 +69,8 @@ in options.services.copyparty = { enable = mkEnableOption "web-based file manager"; - package = mkOption { - type = types.package; - default = pkgs.copyparty; - defaultText = "pkgs.copyparty"; - description = '' + package = mkPackageOption pkgs "copyparty" { + extraDescription = '' Package of the application to run, exposed for overriding purposes. ''; };