feat(services): add and enable trok module

This commit is contained in:
tux
2026-09-07 20:39:39 +05:30
parent ea526e6f88
commit 884dd188c3
6 changed files with 86 additions and 12 deletions

View File

@@ -0,0 +1,27 @@
{ inputs, ... }: {
flake.modules.nixos.services =
{
config,
lib,
...
}:
with lib;
let
cfg = config.tnix.services.trok;
in
{
imports = [
inputs.trok.nixosModules.default
];
options.tnix.services.trok = {
enable = mkEnableOption "trok";
};
config = mkIf cfg.enable {
services.trok = {
enable = true;
};
};
};
}