refactor(treewide): enable modules based on host.type

This commit is contained in:
ooks-io 2024-04-29 22:50:12 +12:00
parent 779603c4cc
commit 25e02c034c
10 changed files with 39 additions and 67 deletions

View file

@ -1,14 +1,13 @@
{ lib, config, ... }:
let
cfg = config.systemModules.networking;
inherit (lib) mkIf mkEnableOption;
inherit (lib) mkIf;
host = config.systemModules.type;
in
{
options.systemModules.networking.hardenTcp = mkEnableOption "Harden TCP";
config = mkIf cfg.hardenTcp {
# nyx module
config = mkIf (host.type != "phone") {
boot = {
kernelModules = ["tls" "tcp_bbr"];
kernel.sysctl = {