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

@ -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 {

View file

@ -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