all repos — searchix @ 174ad04905da9709e4aef366e14aa438e58e5b0b

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: enable using module in pure evaluation mode
Alan Pearce alan@alanpearce.eu
Wed, 27 Nov 2024 18:57:58 +0100
commit

174ad04905da9709e4aef366e14aa438e58e5b0b

parent

1f0be0997233e9a681811f7f633de5997ef4b9fa

2 files changed, 4 insertions(+), 2 deletions(-)

jump to
M flake.nixflake.nix
@@ -23,7 +23,7 @@   outputs = { self, nixpkgs, flake-utils, gomod2nix, pre-commit-hooks, simple-css }:
     {
       nixosModules = {
-        web = import ./nix/modules;
+        web = import ./nix/modules self;
       };
     } // (flake-utils.lib.eachDefaultSystem
       (system:
M nix/modules/default.nixnix/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);