diff --git a/nixos/modules/private-storage.nix b/nixos/modules/private-storage.nix
index 0754a0723a026aaea4f24974f8b4dd98eac483b9..0490af1ee4ebfea20ebcc3acc2e3c59e0a0963d1 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.