refactor(system): flatten
This commit is contained in:
parent
ef1482a65a
commit
8298fc375a
42 changed files with 239 additions and 89 deletions
19
inputs/system/modules/base/networking/resolved.nix
Normal file
19
inputs/system/modules/base/networking/resolved.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
host = config.systemModules.host;
|
||||
in
|
||||
|
||||
{
|
||||
config = mkIf (host.type != "phone") {
|
||||
services.resolved = {
|
||||
enable = true;
|
||||
fallbackDns = ["9.9.9.9"];
|
||||
# allow-downgrade is vulnerable to downgrade attacks
|
||||
extraConfig = ''
|
||||
DNSOverTLS=yes # or allow-downgrade
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue