added stuff
This commit is contained in:
parent
6d31f5b5a1
commit
7d4f626b7d
907 changed files with 70990 additions and 0 deletions
36
nyx/modules/options/system/networking/default.nix
Normal file
36
nyx/modules/options/system/networking/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
in {
|
||||
imports = [
|
||||
./nftables.nix
|
||||
./tailscale.nix
|
||||
];
|
||||
options.modules.system.networking = {
|
||||
nftables.enable = mkEnableOption "nftables firewall";
|
||||
tarpit.enable = mkEnableOption "endlessh-go tarpit";
|
||||
optimizeTcp = mkEnableOption "TCP optimizations";
|
||||
|
||||
wireless = {
|
||||
allowImperative = mkEnableOption ''
|
||||
imperative networking via wpa_cli.
|
||||
|
||||
Enabling this option will make it so that users in the wheel group will
|
||||
be able to manage networking via wpa_cli.
|
||||
'';
|
||||
|
||||
backend = mkOption {
|
||||
type = types.enum ["iwd" "wpa_supplicant"];
|
||||
default = "wpa_supplicant";
|
||||
description = ''
|
||||
Backend that will be used for wireless connections using either
|
||||
`networking.wireless` or `networking.networkmanager.wifi.backend`
|
||||
|
||||
Defaults to wpa_supplicant until iwd is stable.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: optionally use encrypted DNS
|
||||
# encryptDns = mkOption {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue