WIP introduce nixos module system for configuration

This commit is contained in:
Daniel Barlow
2022-09-25 11:10:22 +01:00
parent 0f999f9ae4
commit 887a4ff966
6 changed files with 59 additions and 0 deletions

16
tests/module/defs.nix Normal file
View 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;
};
};
}