WIP introduce nixos module system for configuration
This commit is contained in:
16
tests/module/defs.nix
Normal file
16
tests/module/defs.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ lib, ...}:
|
||||
let inherit (lib) mkEnableOption mkOption types;
|
||||
in {
|
||||
options = {
|
||||
services.a = {
|
||||
enable = mkEnableOption "hello service";
|
||||
};
|
||||
services.b = {
|
||||
enable = mkEnableOption "other service";
|
||||
};
|
||||
services.z = mkOption { };
|
||||
systemPackages = mkOption {
|
||||
type = types.listOf types.package;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user