diff --git a/home/modules/0_template/default.nix b/home/modules/0_template/default.nix new file mode 100644 index 00000000..45b4c7ea --- /dev/null +++ b/home/modules/0_template/default.nix @@ -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 {}; +} diff --git a/home/modules/0_template/options.nix b/home/modules/0_template/options.nix new file mode 100644 index 00000000..dca45c11 --- /dev/null +++ b/home/modules/0_template/options.nix @@ -0,0 +1,9 @@ +{ + lib, + mylib, + ... +}: +with lib; +with mylib.modules; { + enable = mkEnableOpt "TEMPLATE"; +}