From 2b29610df144f17b5ce937d3cf26a852cfa56ab8 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Fri, 4 Sep 2020 11:27:08 -0400 Subject: [PATCH] Shorter expression and more consistent with other config code --- nixos/modules/private-storage.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/private-storage.nix b/nixos/modules/private-storage.nix index 0754a072..0490af1e 100644 --- a/nixos/modules/private-storage.nix +++ b/nixos/modules/private-storage.nix @@ -93,7 +93,7 @@ in # the option that says whether this is even turned on. config = lib.mkIf cfg.enable { services.tahoe.nodes."${storage-node-name}" = - { package = config.services.private-storage.tahoe.package; + { package = cfg.tahoe.package; # Each attribute in this set corresponds to a section in the tahoe.cfg # file. Attributes on those sets correspond to individual assignments # in those sections. -- GitLab