diff --git a/system/modules/0_template/default.nix b/system/modules/0_template/default.nix new file mode 100644 index 00000000..2029fece --- /dev/null +++ b/system/modules/0_template/default.nix @@ -0,0 +1,14 @@ +{ + config, + lib, + mylib, + ... +}: let + inherit (config.modules) TEMPLATE; +in { + options.modules.TEMPLATE = import ./options.nix {inherit lib mylib;}; + + config = + lib.mkIf TEMPLATE.enable { + }; +} diff --git a/system/modules/0_template/options.nix b/system/modules/0_template/options.nix new file mode 100644 index 00000000..ff2461b2 --- /dev/null +++ b/system/modules/0_template/options.nix @@ -0,0 +1,7 @@ +{ + lib, + mylib, + ... +}: { + enable = lib.mkEnableOption "TEMPLATE"; +}