1

Add HM module template

This commit is contained in:
2023-04-28 13:23:57 +02:00
parent c6960d406c
commit 9015b8bf5f
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{
config,
nixosConfig,
lib,
mylib,
pkgs,
...
}:
with lib;
with mylib.modules; let
cfg = config.modules.TEMPLATE;
in {
options.modules.TEMPLATE = import ./options.nix {inherit lib mylib;};
config = mkIf cfg.enable {};
}

View File

@ -0,0 +1,9 @@
{
lib,
mylib,
...
}:
with lib;
with mylib.modules; {
enable = mkEnableOpt "TEMPLATE";
}