merge-modules accepts >1 module

This commit is contained in:
Daniel Barlow 2022-09-25 11:22:15 +01:00
parent 887a4ff966
commit c6e56b1637
5 changed files with 32 additions and 20 deletions

17
modules/base.nix Normal file
View file

@ -0,0 +1,17 @@
{ device } :
{ lib, ...}:
let inherit (lib) mkEnableOption mkOption types;
in {
options = {
systemPackages = mkOption {
type = types.listOf types.package;
};
services = mkOption {
type = types.anything;
};
kernel = mkOption {
type = types.anything;
default = { inherit (device.kernel) config checkedConfig; };
};
};
}