From 5bd0310a7b0aacacfb0f2521afd521c495533a88 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 20 Mar 2025 14:19:38 -0500 Subject: [PATCH] Fix the cache argument --- modules/baseline.nix | 4 +++- modules/nix-conf.nix | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/baseline.nix b/modules/baseline.nix index 38fba78..2afa7df 100644 --- a/modules/baseline.nix +++ b/modules/baseline.nix @@ -1,6 +1,5 @@ { pkgs, - config, lib, self, ... @@ -15,6 +14,9 @@ let [ ]; in { + # This is a dumb hack to pass the value into the import below, but it's how we have to do it, + # since that's how the module system works + _module.args.cache = true; imports = [ ./nix-conf.nix ]; diff --git a/modules/nix-conf.nix b/modules/nix-conf.nix index c62dd61..eba98e8 100644 --- a/modules/nix-conf.nix +++ b/modules/nix-conf.nix @@ -1,7 +1,7 @@ { pkgs, - cache ? true, lib, + cache, ... }: