networking: init
This commit is contained in:
parent
29612baa12
commit
3a57a0dee7
2 changed files with 32 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
./boot
|
||||
./hardware
|
||||
./misc
|
||||
./networking
|
||||
|
||||
./remote-modules.nix
|
||||
];
|
||||
|
|
31
modules/nixos/networking/default.nix
Normal file
31
modules/nixos/networking/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkDefault mkForce;
|
||||
in {
|
||||
imports = [
|
||||
#./firewall
|
||||
|
||||
#./ssh.nix
|
||||
#./tailscale.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);
|
||||
|
||||
useDHCP = mkForce false;
|
||||
useNetworkd = mkForce true;
|
||||
|
||||
usePredictableInterfaceNames = mkDefault true;
|
||||
|
||||
nameservers = [
|
||||
"1.1.1.1"
|
||||
"1.0.0.1"
|
||||
"9.9.9.9"
|
||||
];
|
||||
|
||||
enableIPv6 = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue