1
1
mirror of https://github.com/dali99/nixos-matrix-modules.git synced 2024-12-22 02:47:29 +01:00

load matrix-lib directly inside module

To enable use with non-flakes
This commit is contained in:
Daniel Lovbrotte Olsen 2023-02-17 23:44:47 +01:00
parent 59e39d551d
commit cf89fa8eb9
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
outputs = { self, nixpkgs-lib }: {
nixosModules = {
synapse = import ./synapse-module { matrix-lib = self.lib; };
synapse = import ./synapse-module;
};
lib = import ./lib.nix { lib = nixpkgs-lib.lib; };
};

View File

@ -1,5 +1,5 @@
{ matrix-lib }:
{ pkgs, lib, config, ... }:
{ matrix-lib ? (import ../lib.nix { inherit lib; }) }:
let
cfg = config.services.matrix-synapse-next;
wcfg = cfg.workers;