23 lines
526 B
Nix
23 lines
526 B
Nix
{ config, lib, pkgs, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.provisioning.taskservs.@TASKSERV@;
|
|
in
|
|
{
|
|
options.provisioning.taskservs.@TASKSERV@ = {
|
|
enable = mkEnableOption "@TASKSERV@ service";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
# @NIXOS_MODULE@ configuration
|
|
# TODO: Add module-specific configuration here
|
|
# Reference documentation: https://search.nixos.org/options?query=@NIXOS_MODULE@
|
|
|
|
assertions = [
|
|
{
|
|
assertion = cfg.enable;
|
|
message = "@TASKSERV@ is enabled";
|
|
}
|
|
];
|
|
};
|
|
}
|