Skip to content

Instantly share code, notes, and snippets.

@Lillecarl
Created December 20, 2024 00:04
Show Gist options
  • Save Lillecarl/0f18157de84095b8df6bb64918021e7b to your computer and use it in GitHub Desktop.
Save Lillecarl/0f18157de84095b8df6bb64918021e7b to your computer and use it in GitHub Desktop.
{ lib, config, ... }:
let
modName = "template";
cfg = config.ps.${modName};
in
{
options.ps = {
${modName} = {
enable = lib.mkOption {
default = true;
description = "Whether to enable ${modName}.";
};
};
};
config = lib.mkIf cfg.enable {
lib.template = {
info = "Template module is enabled";
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment