feat: add pangolin and newt modules

This commit is contained in:
tux
2026-08-09 14:36:16 +05:30
parent 819c54d46f
commit 8f531dfc4e
6 changed files with 159 additions and 17 deletions

View File

@@ -0,0 +1,30 @@
{
flake.modules.nixos.networking =
{
config,
lib,
...
}:
with lib;
let
cfg = config.tnix.networking.newt;
in
{
options.tnix.networking.newt = {
enable = mkEnableOption "Newt";
environmentFile = mkOption {
type = types.nullOr types.path;
default = null;
description = "Environment file with secrets passed to Newt";
};
};
config = mkIf cfg.enable {
services.newt = {
enable = true;
environmentFile = cfg.environmentFile;
};
};
};
}