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

@@ -7,6 +7,7 @@
modifications = final: prev: {
tnvim = inputs.tnvim.packages.${prev.stdenv.hostPlatform.system}.default;
tshell = inputs.tshell.packages.${prev.stdenv.hostPlatform.system}.default;
trok = inputs.trok.packages.${prev.stdenv.hostPlatform.system}.default;
cyber-tux = inputs.cyber-tux.packages.${prev.stdenv.hostPlatform.system}.default;
wezterm-git = inputs.wezterm-flake.packages.${prev.stdenv.hostPlatform.system}.default;
hyprland-git = inputs.hyprland.packages.${prev.stdenv.hostPlatform.system};

View File

@@ -11,6 +11,7 @@
jq
dig
lsof
trok
];
};
}

View File

@@ -1,4 +1,4 @@
{ config, ... }:
{ inputs, config, ... }:
{
flake.modules.nixos.alpha =
{
@@ -7,12 +7,17 @@
...
}@innerArgs:
{
imports = with config.flake.modules.nixos; [
boot
networking
virtualisation
services
];
imports =
with config.flake.modules.nixos;
[
boot
networking
virtualisation
services
]
++ [
inputs.trok.nixosModules.default
];
tnix = {
boot = {
@@ -55,6 +60,10 @@
enable = true;
environmentFile = innerArgs.config.sops.secrets."mediaflow-proxy".path;
};
trok = {
enable = true;
};
};
virtualisation = {

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;
};
};
};
}