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:
@@ -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};
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
jq
|
||||
dig
|
||||
lsof
|
||||
trok
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
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