From f1c8f9a8d20c77e5a93722a7dd91e055b5907d09 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 8 Jan 2024 14:33:38 +0100 Subject: [PATCH] helpers/mkPlugin: remove useless 'value' parameter --- lib/helpers.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/helpers.nix b/lib/helpers.nix index f549f4bd..56ad77db 100644 --- a/lib/helpers.nix +++ b/lib/helpers.nix @@ -335,9 +335,7 @@ with lib; rec { mapAttrs' (optName: opt: { name = globalPrefix + opt.global; - value = - ifNonNull' cfg.${optName} - (opt.value cfg.${optName}); + value = cfg.${optName}; }) options; # does this evaluate package? @@ -392,7 +390,6 @@ with lib; rec { description ? null, example ? null, default ? null, - value ? v: v, ... }: { option = mkOption { @@ -400,7 +397,7 @@ with lib; rec { inherit default description example; }; - inherit value global; + inherit global; }; extraOptionsOptions = {