Allow passing in a list of modules to the serviceConfig.
This commit is contained in:
parent
23ef158676
commit
fbe9f2eabb
2 changed files with 5 additions and 4 deletions
|
|
@ -55,7 +55,9 @@
|
||||||
{
|
{
|
||||||
serviceConfig = self.lib.makeServiceConfig {
|
serviceConfig = self.lib.makeServiceConfig {
|
||||||
inherit system;
|
inherit system;
|
||||||
module = { imports = [ ./nix/modules ]; };
|
modules = [
|
||||||
|
./nix/modules
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = rec {
|
packages = rec {
|
||||||
|
|
|
||||||
|
|
@ -5,16 +5,15 @@ in
|
||||||
{
|
{
|
||||||
makeServiceConfig =
|
makeServiceConfig =
|
||||||
{ system
|
{ system
|
||||||
, module
|
, modules
|
||||||
,
|
,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
|
||||||
nixosConfig = lib.nixosSystem {
|
nixosConfig = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system modules;
|
||||||
specialArgs = { };
|
specialArgs = { };
|
||||||
modules = [ module ];
|
|
||||||
};
|
};
|
||||||
services =
|
services =
|
||||||
lib.flip lib.genAttrs
|
lib.flip lib.genAttrs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue