Allow passing in a list of modules to the serviceConfig.

This commit is contained in:
R-VdP 2023-02-02 09:27:40 +00:00
parent 23ef158676
commit fbe9f2eabb
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View file

@ -5,16 +5,15 @@ in
{
makeServiceConfig =
{ system
, module
, modules
,
}:
let
pkgs = nixpkgs.legacyPackages.${system};
nixosConfig = lib.nixosSystem {
inherit system;
inherit system modules;
specialArgs = { };
modules = [ module ];
};
services =
lib.flip lib.genAttrs