Skip to content

Commit

Permalink
handle package injection in module
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Oct 24, 2023
1 parent 3a76c29 commit aa90b25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
pkgs.callPackage ./nix/mev-rs.nix { inherit pkgs; crane = craneLib; };
in
{
nixosModules.mev-rs = import ./nix/module.nix;
nixosModules.mev-rs = import ./nix/module.nix { inherit mev-rs; };
nixosModules.default = self.nixosModules.mev-rs;

overlays.default = _:_: {
Expand Down
3 changes: 2 additions & 1 deletion nix/module.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
pkg:
{ config, lib, pkgs, ... }:
let
cfg = config.services.mev-rs;

mev-rs = pkgs.mev-rs;
mev-rs = pkg.mev-rs pkgs.system;

name = "mev-${cfg.enable}-rs";

Expand Down

0 comments on commit aa90b25

Please sign in to comment.