mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: set hostname/dns, disable nix-fw
This commit is contained in:
parent
896f357559
commit
769b739363
1 changed files with 4 additions and 4 deletions
|
|
@ -1,13 +1,13 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
networking = {
|
||||
hostName = "nixos";
|
||||
hostName = "sakura";
|
||||
networkmanager.enable = true;
|
||||
nameservers = [ "1.1.1.1" ];
|
||||
nameservers = [ "9.9.9.9" ];
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 80 443 59010 59011 ];
|
||||
allowedUDPPorts = [ 59010 59011 ];
|
||||
# allowedTCPPorts = [ 22 80 443 59010 59011 ];
|
||||
# allowedUDPPorts = [ 59010 59011 ];
|
||||
# allowedUDPPortRanges = [
|
||||
# { from = 4000; to = 4007; }
|
||||
# { from = 8000; to = 8010; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue