load matrix-lib directly inside module
To enable use with non-flakes
This commit is contained in:
parent
59e39d551d
commit
cf89fa8eb9
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
outputs = { self, nixpkgs-lib }: {
|
outputs = { self, nixpkgs-lib }: {
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
synapse = import ./synapse-module { matrix-lib = self.lib; };
|
synapse = import ./synapse-module;
|
||||||
};
|
};
|
||||||
lib = import ./lib.nix { lib = nixpkgs-lib.lib; };
|
lib = import ./lib.nix { lib = nixpkgs-lib.lib; };
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ matrix-lib }:
|
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
|
{ matrix-lib ? (import ../lib.nix { inherit lib; }) }:
|
||||||
let
|
let
|
||||||
cfg = config.services.matrix-synapse-next;
|
cfg = config.services.matrix-synapse-next;
|
||||||
wcfg = cfg.workers;
|
wcfg = cfg.workers;
|
||||||
|
|
Loading…
Reference in New Issue