diff options
author | Alan Pearce | 2024-11-27 18:57:58 +0100 |
---|---|---|
committer | Alan Pearce | 2024-11-27 18:57:58 +0100 |
commit | 174ad04905da9709e4aef366e14aa438e58e5b0b (patch) | |
tree | dedf95397927296e4b44a2ebbff694a4699d28f3 | |
parent | 1f0be0997233e9a681811f7f633de5997ef4b9fa (diff) | |
download | searchix-174ad04905da9709e4aef366e14aa438e58e5b0b.tar.lz searchix-174ad04905da9709e4aef366e14aa438e58e5b0b.tar.zst searchix-174ad04905da9709e4aef366e14aa438e58e5b0b.zip |
fix: enable using module in pure evaluation mode
-rw-r--r-- | flake.nix | 2 | ||||
-rw-r--r-- | nix/modules/default.nix | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix index fbfd82e..5ca7f8a 100644 --- a/flake.nix +++ b/flake.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: 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); |