mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-19 16:49:04 +05:30
feat(services): add and enable trok module
This commit is contained in:
27
modules/nixos/services/trok.nix
Normal file
27
modules/nixos/services/trok.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user