merge-modules accepts >1 module
This commit is contained in:
parent
887a4ff966
commit
c6e56b1637
5 changed files with 32 additions and 20 deletions
17
modules/base.nix
Normal file
17
modules/base.nix
Normal 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; };
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue