2023-06-15 17:28:04 +03:00
|
|
|
{ config, inputs, pkgs, ... }:
|
|
|
|
|
2022-02-05 21:42:36 +02:00
|
|
|
{
|
|
|
|
networking.useDHCP = false;
|
|
|
|
|
2022-03-17 22:59:04 +02:00
|
|
|
networking.networkmanager = {
|
|
|
|
dns = "systemd-resolved";
|
|
|
|
enableStrongSwan = false;
|
2024-04-25 02:48:24 +03:00
|
|
|
settings.connectivity = {
|
|
|
|
url = "http://whoami.privatevoid.net/online";
|
|
|
|
respone = "CONNECTED_GLOBAL";
|
|
|
|
interval = 120;
|
|
|
|
};
|
2022-03-17 22:59:04 +02:00
|
|
|
};
|
2022-02-05 21:42:36 +02:00
|
|
|
services.resolved = {
|
|
|
|
enable = true;
|
2023-05-01 19:27:32 +03:00
|
|
|
fallbackDns = [
|
|
|
|
"95.216.8.12#securedns.privatevoid.net"
|
|
|
|
"152.67.73.164#securedns.privatevoid.net"
|
|
|
|
"10.1.0.1"
|
|
|
|
];
|
2022-02-05 21:42:36 +02:00
|
|
|
llmnr = "true";
|
|
|
|
dnssec = "false";
|
2023-05-01 19:27:32 +03:00
|
|
|
extraConfig = ''
|
|
|
|
Cache=no-negative
|
|
|
|
DNSOverTLS=opportunistic
|
|
|
|
DNS=${builtins.concatStringsSep " " config.services.resolved.fallbackDns}
|
|
|
|
'';
|
2022-02-05 21:42:36 +02:00
|
|
|
};
|
|
|
|
networking.firewall = let
|
|
|
|
ports = [
|
|
|
|
5355 # llmnr
|
|
|
|
];
|
|
|
|
in {
|
|
|
|
allowedTCPPorts = ports;
|
|
|
|
allowedUDPPorts = ports;
|
|
|
|
};
|
2023-06-15 17:28:04 +03:00
|
|
|
|
|
|
|
boot.extraModulePackages = [
|
|
|
|
(inputs.self.packages.${pkgs.system}.evil.override {
|
|
|
|
inherit (config.boot.kernelPackages) kernel;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.kernelModules = [ "evil" ];
|
2022-02-05 21:42:36 +02:00
|
|
|
}
|