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