mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-19 16:49:04 +05:30
28 lines
443 B
Nix
28 lines
443 B
Nix
{ 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;
|
|
};
|
|
};
|
|
};
|
|
}
|