From 174ad04905da9709e4aef366e14aa438e58e5b0b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 27 Nov 2024 18:57:58 +0100 Subject: fix: enable using module in pure evaluation mode --- nix/modules/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nix/modules/default.nix') diff --git a/nix/modules/default.nix b/nix/modules/default.nix index 690116b..3186236 100644 --- a/nix/modules/default.nix +++ b/nix/modules/default.nix @@ -1,3 +1,5 @@ +self: + { config , lib , pkgs @@ -8,7 +10,7 @@ let inherit (builtins) fromTOML readFile; cfg = config.services.searchix; - package = pkgs.callPackage ../.. { }; + package = self.packages.default; defaults = fromTOML (readFile ../../defaults.toml); -- cgit 1.4.1